Skip to content

Commit

Permalink
feat: add button names
Browse files Browse the repository at this point in the history
  • Loading branch information
SidonieBouthors committed Jul 17, 2024
1 parent e8067fa commit 7c56ce7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ export default function NavBar({
<Link href="/about">About</Link>
</li>
<li>
<button className="icon-toggle theme-toggle" onClick={switchTheme}>
<button aria-label="Switch Theme" className="icon-toggle theme-toggle" onClick={switchTheme}>
<ThemeSwitchIcon />
</button>
</li>
</ul>
</nav>
<button
<button aria-label="Toggle Menu"
className={`icon-toggle menu-toggle ${isOpen ? "open" : ""}`}
onClick={toggleMenu}
>
Expand Down
2 changes: 1 addition & 1 deletion components/NavMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function NavMenu({
</Link>
</li>
<li>
<button className="icon-toggle theme-toggle" onClick={switchTheme}>
<button aria-label="Switch Theme" className="icon-toggle theme-toggle" onClick={switchTheme}>
<ThemeSwitchIcon />
</button>
</li>
Expand Down

0 comments on commit 7c56ce7

Please sign in to comment.