mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(tooltip): aria-label should use iconDescription if triggerText is falsy (#1095)
This commit is contained in:
parent
c7de897b89
commit
c32df50689
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