Skip to content

Commit 9ff66ac

Browse files
fix: keep primary nav ahead of utility links in tab order (#1199)
Co-authored-by: hiromieguchi802-lab <270042125+hiromieguchi802-lab@users.noreply.github.com> Co-authored-by: Bill <bluebill1049@hotmail.com>
1 parent f53a588 commit 9ff66ac

1 file changed

Lines changed: 54 additions & 54 deletions

File tree

src/components/Nav.tsx

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -43,60 +43,6 @@ export default function Nav() {
4343

4444
return (
4545
<>
46-
<div className={styles.iconGroup}>
47-
{show && (
48-
<Search focus={isFocusOnSearch} setFocus={setIsFocusOnSearch} />
49-
)}
50-
51-
{showLang && <Toggle />}
52-
</div>
53-
54-
<div className={styles.gitHubButtonWrap}>
55-
<span className={`${styles.icon} desktopOnly`}>
56-
<a
57-
href="https://discord.gg/yYv7GZ8"
58-
target="_blank"
59-
rel="noopener noreferrer"
60-
title="React Hook Form Discord"
61-
>
62-
<svg viewBox="0 0 127.14 96.36">
63-
<path d="M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z" />
64-
</svg>
65-
</a>
66-
</span>
67-
68-
<span className={`${styles.icon} ${styles.donate}`}>
69-
<a
70-
href="https://opencollective.com/react-hook-form"
71-
target="_blank"
72-
rel="noreferrer noopener"
73-
title="Donate to the project"
74-
>
75-
76-
</a>
77-
</span>
78-
79-
<span className={styles.icon}>
80-
<a
81-
href="https://twitter.com/HookForm"
82-
target="_blank"
83-
rel="noopener noreferrer"
84-
title="React Hook Form Twitter"
85-
>
86-
<svg viewBox="0 0 1200 1227">
87-
<path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z" />
88-
</svg>
89-
</a>
90-
</span>
91-
92-
<GitHubButton
93-
href="https://github.com/react-hook-form/react-hook-form"
94-
data-size="large"
95-
data-show-count
96-
aria-label="Star react-hook-form on GitHub"
97-
/>
98-
</div>
99-
10046
{showMenu && (
10147
<Animate play start={{ opacity: 0 }} end={{ opacity: 1 }}>
10248
<nav
@@ -452,6 +398,60 @@ export default function Nav() {
452398
</a>
453399
</nav>
454400
</div>
401+
402+
<div className={styles.iconGroup}>
403+
{show && (
404+
<Search focus={isFocusOnSearch} setFocus={setIsFocusOnSearch} />
405+
)}
406+
407+
{showLang && <Toggle />}
408+
</div>
409+
410+
<div className={styles.gitHubButtonWrap}>
411+
<span className={`${styles.icon} desktopOnly`}>
412+
<a
413+
href="https://discord.gg/yYv7GZ8"
414+
target="_blank"
415+
rel="noopener noreferrer"
416+
title="React Hook Form Discord"
417+
>
418+
<svg viewBox="0 0 127.14 96.36">
419+
<path d="M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z" />
420+
</svg>
421+
</a>
422+
</span>
423+
424+
<span className={`${styles.icon} ${styles.donate}`}>
425+
<a
426+
href="https://opencollective.com/react-hook-form"
427+
target="_blank"
428+
rel="noreferrer noopener"
429+
title="Donate to the project"
430+
>
431+
432+
</a>
433+
</span>
434+
435+
<span className={styles.icon}>
436+
<a
437+
href="https://twitter.com/HookForm"
438+
target="_blank"
439+
rel="noopener noreferrer"
440+
title="React Hook Form Twitter"
441+
>
442+
<svg viewBox="0 0 1200 1227">
443+
<path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z" />
444+
</svg>
445+
</a>
446+
</span>
447+
448+
<GitHubButton
449+
href="https://github.com/react-hook-form/react-hook-form"
450+
data-size="large"
451+
data-show-count
452+
aria-label="Star react-hook-form on GitHub"
453+
/>
454+
</div>
455455
</>
456456
)
457457
}

0 commit comments

Comments
 (0)