Skip to content

Commit

Permalink
fix(tooltip): added aria-label to tooltip content (#9420)
Browse files Browse the repository at this point in the history
* fix(tooltip): added aria-label to tooltip content

* fix(tooltip): adds title to toolitp

* fix(tooltip): fixes dialog title bug

Co-authored-by: Josefina Mancilla <[email protected]>
  • Loading branch information
andreancardona and jnm2377 authored Aug 18, 2021
1 parent 3f42d06 commit 7d5667a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/react/src/components/Tooltip/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,10 @@ class Tooltip extends Component {
onBlur={this.handleMouse}
onContextMenu={this.handleMouse}>
<span className={`${prefix}--tooltip__caret`} />
<div className={`${prefix}--tooltip__content`} role="dialog">
<div
className={`${prefix}--tooltip__content`}
aria-labelledby={this._tooltipId}
role="dialog">
{children}
</div>
</div>
Expand Down

0 comments on commit 7d5667a

Please sign in to comment.