Add negative tabindex

This commit is contained in:
Henrik Giesel 2021-03-30 03:05:21 +02:00
parent b5b9c79f1c
commit 7f5e9b1b33
3 changed files with 3 additions and 2 deletions

View File

@ -32,6 +32,6 @@
} }
</style> </style>
<button> <button tabindex="-1">
<span class={className}> <input type="color" on:change={onChange} /> </span> <span class={className}> <input type="color" on:change={onChange} /> </span>
</button> </button>

View File

@ -48,6 +48,7 @@
<button <button
class="p-1 {className}" class="p-1 {className}"
class:active class:active
tabindex="-1"
{disabled} {disabled}
on:click={onClick} on:click={onClick}
on:mousedown|preventDefault> on:mousedown|preventDefault>

View File

@ -18,4 +18,4 @@
} }
</style> </style>
<button type="button" class="btn btn-secondary" on:click> {label} </button> <button class="btn btn-secondary" tabindex="-1" on:click> {label} </button>