mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
feat(button): set aria-pressed attribute if icon-only, ghost button is selected
This commit is contained in:
parent
df88b75c6b
commit
dc678e9904
1 changed files with 1 additions and 0 deletions
|
@ -95,6 +95,7 @@
|
|||
tabindex,
|
||||
disabled,
|
||||
href,
|
||||
"aria-pressed": hasIconOnly && kind === "ghost" ? isSelected : undefined,
|
||||
...$$restProps,
|
||||
class: [
|
||||
"bx--btn",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue