mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 20:33:02 +00:00
Fix some minor bugs
The tabindex variable is of a number type (it should be fixed in all components?) Add href to link attributes to get rid of "<!-- svelte-ignore a11y-missing-attribute -->"
This commit is contained in:
parent
62b71305d6
commit
2c79f16371
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@
|
||||||
$: primaryFocus = $focusedId === id;
|
$: primaryFocus = $focusedId === id;
|
||||||
$: buttonProps = {
|
$: buttonProps = {
|
||||||
role: "menuitem",
|
role: "menuitem",
|
||||||
tabindex: "-1",
|
tabindex: -1,
|
||||||
class: "bx--overflow-menu-options__btn",
|
class: "bx--overflow-menu-options__btn",
|
||||||
disabled: href ? undefined : disabled,
|
disabled: href ? undefined : disabled,
|
||||||
href: href ? href : undefined,
|
href: href ? href : undefined,
|
||||||
|
@ -62,9 +62,9 @@
|
||||||
{...$$restProps}
|
{...$$restProps}
|
||||||
>
|
>
|
||||||
{#if href}
|
{#if href}
|
||||||
<!-- svelte-ignore a11y-missing-attribute -->
|
|
||||||
<a
|
<a
|
||||||
bind:this="{ref}"
|
bind:this="{ref}"
|
||||||
|
{href}
|
||||||
{...buttonProps}
|
{...buttonProps}
|
||||||
on:click
|
on:click
|
||||||
on:click="{() => {
|
on:click="{() => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue