File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,11 @@ function Tooltip({
21
21
suppressDiv,
22
22
trigger,
23
23
defaultVisible,
24
+ id,
24
25
} ) {
25
26
return (
26
27
< RCTooltip
28
+ id = { id }
27
29
placement = { position }
28
30
overlay = { content }
29
31
overlayClassName = { className }
@@ -49,6 +51,7 @@ Tooltip.defaultProps = {
49
51
position : 'top' ,
50
52
className : '' ,
51
53
content : '' ,
54
+ id : '' ,
52
55
onTooltipHover : _ . noop ,
53
56
placeArrow : _ . noop ,
54
57
suppressDiv : false ,
@@ -60,6 +63,7 @@ Tooltip.propTypes = {
60
63
align : PT . shape ( { } ) ,
61
64
position : PT . string ,
62
65
children : PT . node . isRequired ,
66
+ id : PT . string ,
63
67
className : PT . string ,
64
68
content : PT . node ,
65
69
onTooltipHover : PT . func ,
Original file line number Diff line number Diff line change @@ -108,8 +108,8 @@ Final Review:
108
108
</ h3 >
109
109
< span styleName = "link-like-paragraph tooltip-container" >
110
110
{ reviewTypeTitle }
111
- < Tooltip content = { reviewTip } trigger = { [ 'hover' , 'focus' ] } >
112
- < div styleName = "tctooltip" tabIndex = "0" role = "button" >
111
+ < Tooltip id = "review-tip" content = { reviewTip } trigger = { [ 'hover' , 'focus' ] } >
112
+ < div styleName = "tctooltip" tabIndex = "0" role = "button" aria-describedBy = "review-tip" >
113
113
?
114
114
</ div >
115
115
</ Tooltip >
@@ -119,8 +119,8 @@ Approval:
119
119
</ h3 >
120
120
< span styleName = "link-like-paragraph tooltip-container" >
121
121
User Sign-Off
122
- < Tooltip content = { approvalTip } className = { styles [ 'tooltip-overlay' ] } trigger = { [ 'hover' , 'focus' ] } >
123
- < div styleName = "tctooltip" tabIndex = "0" role = "button" >
122
+ < Tooltip id = "approval-tip" content = { approvalTip } className = { styles [ 'tooltip-overlay' ] } trigger = { [ 'hover' , 'focus' ] } >
123
+ < div styleName = "tctooltip" tabIndex = "0" role = "button" aria-describedBy = "approval-tip" >
124
124
?
125
125
</ div >
126
126
</ Tooltip >
You can’t perform that action at this time.
0 commit comments