fix(button): not set aria-pressed on link buttons (#1091)

This commit is contained in:
brunnerh 2022-02-12 15:47:53 +01:00 committed by GitHub
commit 05e4c282b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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",