Skip to content

Commit 807b9d3

Browse files
committed
Final touches
1 parent f8456f1 commit 807b9d3

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

project-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ joshcena
99
luo
1010
mdast
1111
mdxjs
12+
noninteractive
1213
pipeable
1314
saturationl
1415
scrolly

src/global.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,11 @@ p {
119119
padding: 0 1em;
120120
font-weight: normal;
121121
}
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+
}

src/pages/about/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ export default function About(): JSX.Element {
8989
<div className={styles.profileRow}>
9090
<img src={profile} alt="" className={styles.profile} />
9191
<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")}
9696
lang="zh-Hans-CN"
9797
data-tooltip-id={nameId}>
9898
<ruby>
@@ -105,7 +105,7 @@ export default function About(): JSX.Element {
105105
<rt></rt>
106106
<rp>)</rp>
107107
</ruby>
108-
</a>
108+
</span>
109109
<br />
110110
Joshua Chen
111111
</div>

src/pages/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ export default function Home(): JSX.Element {
1010
<Scrolly />
1111
<blockquote className={styles.quote}>
1212
<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+
!
1419
</p>
1520
</blockquote>
1621
<Tooltip id={id} className="tooltip" disableStyleInjection clickable>

0 commit comments

Comments
 (0)