Skip to content

Commit

Permalink
fix: button accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
WayneGoosen committed Sep 18, 2024
1 parent 436b0bd commit b0559a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ToggleTheme.astro
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import MoonIcon from '@/components/icons/MoonIcon'
</script>

<theme-toggle class='relative h-6 w-6'>
<button id='toggle-theme' class='group'>
<button id='toggle-theme' class='group' aria-label='ToggleTheme'>
<span class='absolute left-0 right-0 top-0 opacity-0 group-aria-pressed:opacity-100'>
<SunIcon />
</span>
Expand Down

0 comments on commit b0559a7

Please sign in to comment.