mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 12:23:02 +00:00
fix(tooltip): aria-label should use iconDescription if triggerText is falsy
Fixes #1094
This commit is contained in:
parent
16790daaa9
commit
a6fefec954
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@
|
|||
"aria-expanded": open,
|
||||
"aria-describedby": open ? tooltipId : undefined,
|
||||
"aria-labelledby": triggerText ? triggerId : undefined,
|
||||
"aria-label": triggerText ? iconDescription : undefined,
|
||||
"aria-label": triggerText ? undefined : iconDescription,
|
||||
tabindex,
|
||||
style: hideIcon ? $$restProps.style : undefined,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue