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

Fixes #1103
This commit is contained in:
metonym 2022-02-18 06:12:28 -08:00 committed by GitHub
commit 1ad2ca404a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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