File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -114,11 +114,11 @@ function App() {
114
114
</ section >
115
115
< section id = "section-anchor-select" style = { { marginTop : '100px' } } >
116
116
< p >
117
- < button data-tooltip-for = "anchor-select" data-tooltip-content = "this content is different" >
117
+ < button data-tooltip-id = "anchor-select" data-tooltip-content = "this content is different" >
118
118
Anchor select
119
119
</ button >
120
- < button data-tooltip-for = "anchor-select" > Anchor select 2</ button >
121
- < button data-tooltip-for = "anchor-select" > Anchor select 3</ button >
120
+ < button data-tooltip-id = "anchor-select" > Anchor select 2</ button >
121
+ < button data-tooltip-id = "anchor-select" > Anchor select 3</ button >
122
122
</ p >
123
123
< Tooltip id = "anchor-select" > Tooltip content</ Tooltip >
124
124
< Tooltip
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ const Tooltip = ({
60
60
useEffect ( ( ) => {
61
61
let selector = anchorSelect
62
62
if ( ! selector && id ) {
63
- selector = `[data-tooltip-for ='${ id } ']`
63
+ selector = `[data-tooltip-id ='${ id } ']`
64
64
}
65
65
if ( ! selector ) {
66
66
return
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ const TooltipController = ({
130
130
131
131
let selector = anchorSelect
132
132
if ( ! selector && id ) {
133
- selector = `[data-tooltip-for ='${ id } ']`
133
+ selector = `[data-tooltip-id ='${ id } ']`
134
134
}
135
135
if ( selector ) {
136
136
try {
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export interface ITooltipController {
46
46
47
47
declare module 'react' {
48
48
interface HTMLAttributes < T > extends AriaAttributes , DOMAttributes < T > {
49
- 'data-tooltip-for ' ?: boolean | string
49
+ 'data-tooltip-id ' ?: string
50
50
'data-tooltip-place' ?: PlacesType
51
51
'data-tooltip-content' ?: string
52
52
'data-tooltip-html' ?: string
You can’t perform that action at this time.
0 commit comments