chore: fix tabindex capitalization

The Svelte Language server does not detect `tabIndex` as a valid attribute.

Note, however, that `tabIndex` is correct when using it in JavaScript (e.g., `node.tabIndex`).
This commit is contained in:
metonym 2023-05-03 09:30:29 -07:00
commit 5c7603dbfd
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@
<div <div
bind:this="{ref}" bind:this="{ref}"
role="button" role="button"
tabIndex="{disabled ? -1 : 0}" tabindex="{disabled ? -1 : 0}"
class:bx--tag__close-icon="{true}" class:bx--tag__close-icon="{true}"
on:click|preventDefault|stopPropagation="{(e) => { on:click|preventDefault|stopPropagation="{(e) => {
if (!disabled) { if (!disabled) {

View file

@ -254,7 +254,7 @@
on:click|stopPropagation on:click|stopPropagation
on:mousedown|stopPropagation on:mousedown|stopPropagation
class:bx--tooltip__content="{true}" class:bx--tooltip__content="{true}"
tabIndex="-1" tabindex="-1"
role="dialog" role="dialog"
> >
<slot /> <slot />