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, tabindex,
disabled: disabled === true ? true : undefined, disabled: disabled === true ? true : undefined,
href, href,
"aria-pressed": hasIconOnly && kind === "ghost" ? isSelected : undefined, "aria-pressed":
hasIconOnly && kind === "ghost" && !href ? isSelected : undefined,
...$$restProps, ...$$restProps,
class: [ class: [
"bx--btn", "bx--btn",