Do not set aria-pressed on link buttons.

Fixes #1090.
This commit is contained in:
Harald Brunner 2022-02-12 14:29:45 +01:00
commit da1950883d

View file

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