fix(content-switcher): Switch should have type="button"

Fixes #1103
This commit is contained in:
Eric Liu 2022-02-17 17:55:49 -08:00
commit ed19f82244

View file

@ -41,6 +41,7 @@
<!-- svelte-ignore a11y-mouse-events-have-key-events --> <!-- svelte-ignore a11y-mouse-events-have-key-events -->
<button <button
bind:this="{ref}" bind:this="{ref}"
type="button"
role="tab" role="tab"
tabindex="{selected ? '0' : '-1'}" tabindex="{selected ? '0' : '-1'}"
aria-selected="{selected}" aria-selected="{selected}"