Skip to content

Commit 6b7acc9

Browse files
authored
fix: making the webpage more accessible (#105)
* fix: change primary color to accessible equivalent * fix: add for attribute for theme selector label * feat: add aria-label in label for dropdown menu * fix: add aria-label * fix: add for attribute * Revert "fix: add aria-label" This reverts commit 6c5bf83.
1 parent c0cb404 commit 6b7acc9

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/components/Header.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ export const Header = () => {
1313
<div className="navbar bg-base-100">
1414
<div className="navbar-start">
1515
<div className="dropdown">
16-
<label tabIndex={0} className="btn btn-ghost lg:hidden">
16+
<label
17+
for="menu"
18+
tabIndex={0}
19+
className="btn btn-ghost lg:hidden"
20+
>
1721
<svg
1822
xmlns="http://www.w3.org/2000/svg"
1923
className="h-5 w-5"

src/components/ThemeSelector.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export function ThemeSelector() {
3131
<>
3232
<div className="dropdown dropdown-bottom dropdown-end">
3333
<label
34+
for="themeToggle"
3435
tabIndex={0}
3536
className="btn btn-circle btn-ghost m-1"
3637
data-testid="themeSelectorButton"

tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = {
1919
"light",
2020
{
2121
"custom-dark": {
22-
primary: "#3b82f6",
22+
primary: "#2d63bc",
2323

2424
secondary: "#a78bfa",
2525

0 commit comments

Comments
 (0)