Skip to content

Commit

Permalink
fix: accessiblity issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hkfi committed Jul 14, 2024
1 parent bd009a5 commit 5c8ed2b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/ThemeIcon.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
---

<button id='themeToggle'>
<button id='themeToggle' aria-label='theme-toggle'>
<svg class='h-6' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>
<path
id='sun'
Expand All @@ -22,11 +22,11 @@
border: 0;
background: none;

@apply hover:fill-orange-500 fill-text;
@apply fill-text hover:fill-orange-500;
}

:global(.dark) #themeToggle {
@apply hover:fill-purple-500 fill-text;
@apply fill-text hover:fill-purple-500;
}

:global(.dark) #sun {
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Navbar/icons/Github.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
---

<a href='https://github.com/hkfi' target='_blank'>
<a href='https://github.com/hkfi' target='_blank' aria-label='github'>
<svg viewBox='0 0 128 128' class='h-6 fill-text hover:fill-primary'>
<g
><path
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Navbar/icons/X.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
---

<a href='https://twitter.com/hkfidev' target='_blank'>
<a href='https://twitter.com/hkfidev' target='_blank' aria-label='twitter'>
<svg
class='h-6 fill-text hover:fill-primary'
xmlns='http://www.w3.org/2000/svg'
Expand Down

0 comments on commit 5c8ed2b

Please sign in to comment.