feat(button): set aria-pressed attribute if icon-only, ghost button is selected

This commit is contained in:
Eric Y Liu 2021-03-05 14:59:14 -08:00
commit dc678e9904

View file

@ -95,6 +95,7 @@
tabindex,
disabled,
href,
"aria-pressed": hasIconOnly && kind === "ghost" ? isSelected : undefined,
...$$restProps,
class: [
"bx--btn",