mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
fix(button): not set aria-pressed
on link buttons (#1091)
This commit is contained in:
parent
acf8a26290
commit
05e4c282b0
1 changed files with 2 additions and 1 deletions
|
@ -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",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue