fix(tag): add type="button" on interactive, filter tag variants (#1246)

Fixes #1243
This commit is contained in:
metonym 2022-04-14 20:17:23 -07:00 committed by GitHub
commit 7f9f45e54f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,6 +77,7 @@
<span class:bx--tag__label="{true}">{type}</span>
</slot>
<button
type="button"
aria-labelledby="{id}"
class:bx--tag__close-icon="{true}"
disabled="{disabled}"
@ -94,6 +95,7 @@
</div>
{:else if interactive}
<button
type="button"
id="{id}"
disabled="{disabled}"
aria-disabled="{disabled}"