File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
packages/react/src/components/Tooltip Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -510,7 +510,8 @@ class Tooltip extends Component {
510
510
< div
511
511
className = { `${ prefix } --tooltip__trigger` }
512
512
{ ...properties }
513
- ref = { refProp } >
513
+ ref = { refProp }
514
+ aria-describedby = { tooltipBodyId } >
514
515
< IconCustomElement { ...iconProperties } />
515
516
</ div >
516
517
</ div >
@@ -519,7 +520,8 @@ class Tooltip extends Component {
519
520
id = { triggerId }
520
521
className = { triggerClasses }
521
522
ref = { refProp }
522
- { ...properties } >
523
+ { ...properties }
524
+ aria-describedby = { tooltipBodyId } >
523
525
{ triggerText }
524
526
</ div >
525
527
) }
@@ -544,14 +546,9 @@ class Tooltip extends Component {
544
546
onMouseOut = { this . handleMouse }
545
547
onFocus = { this . handleMouse }
546
548
onBlur = { this . handleMouse }
547
- onContextMenu = { this . handleMouse }
548
- role = "tooltip" >
549
+ onContextMenu = { this . handleMouse } >
549
550
< span className = { `${ prefix } --tooltip__caret` } />
550
- < div
551
- className = { `${ prefix } --tooltip__content` }
552
- role = "dialog"
553
- aria-describedby = { tooltipBodyId }
554
- aria-labelledby = { triggerId } >
551
+ < div className = { `${ prefix } --tooltip__content` } role = "dialog" >
555
552
{ children }
556
553
</ div >
557
554
</ div >
You can’t perform that action at this time.
0 commit comments