File tree Expand file tree Collapse file tree 4 files changed +20
-6
lines changed Expand file tree Collapse file tree 4 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 9
9
luo
10
10
mdast
11
11
mdxjs
12
+ noninteractive
12
13
pipeable
13
14
saturationl
14
15
scrolly
Original file line number Diff line number Diff line change 119
119
padding : 0 1em ;
120
120
font-weight : normal;
121
121
}
122
+
123
+ .term {
124
+ font-style : normal;
125
+ text-decoration : underline;
126
+ text-decoration-style : dotted;
127
+ text-underline-offset : 0.2em ;
128
+ cursor : help;
129
+ }
Original file line number Diff line number Diff line change @@ -89,10 +89,10 @@ export default function About(): JSX.Element {
89
89
< div className = { styles . profileRow } >
90
90
< img src = { profile } alt = "" className = { styles . profile } />
91
91
< div >
92
- { /* eslint-disable-next-line jsx-a11y/anchor-is-valid */ }
93
- < a
94
- href = "#"
95
- className = { styles . zhName }
92
+ < span
93
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
94
+ tabIndex = { 0 }
95
+ className = { clsx ( styles . zhName , "term" ) }
96
96
lang = "zh-Hans-CN"
97
97
data-tooltip-id = { nameId } >
98
98
< ruby >
@@ -105,7 +105,7 @@ export default function About(): JSX.Element {
105
105
< rt > dá</ rt >
106
106
< rp > )</ rp >
107
107
</ ruby >
108
- </ a >
108
+ </ span >
109
109
< br />
110
110
Joshua Chen
111
111
</ div >
Original file line number Diff line number Diff line change @@ -10,7 +10,12 @@ export default function Home(): JSX.Element {
10
10
< Scrolly />
11
11
< blockquote className = { styles . quote } >
12
12
< p >
13
- I care about < dfn data-tooltip-id = { id } > languages</ dfn > !
13
+ I care about{ " " }
14
+ { /* eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex */ }
15
+ < span tabIndex = { 0 } data-tooltip-id = { id } className = "term" >
16
+ languages
17
+ </ span >
18
+ !
14
19
</ p >
15
20
</ blockquote >
16
21
< Tooltip id = { id } className = "tooltip" disableStyleInjection clickable >
You can’t perform that action at this time.
0 commit comments