mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +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,
|
||||
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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue