mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 12:23: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;
|
||||
$: buttonProps = {
|
||||
role: "menuitem",
|
||||
tabindex: "-1",
|
||||
tabindex: -1,
|
||||
class: "bx--overflow-menu-options__btn",
|
||||
disabled: href ? undefined : disabled,
|
||||
href: href ? href : undefined,
|
||||
|
@ -62,9 +62,9 @@
|
|||
{...$$restProps}
|
||||
>
|
||||
{#if href}
|
||||
<!-- svelte-ignore a11y-missing-attribute -->
|
||||
<a
|
||||
bind:this="{ref}"
|
||||
{href}
|
||||
{...buttonProps}
|
||||
on:click
|
||||
on:click="{() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue