Skip to content

Commit

Permalink
style(components): replace icon size classes for consistency
Browse files Browse the repository at this point in the history
Updated icon sizing classes for consistency across components.
  • Loading branch information
nekofar committed Aug 20, 2024
1 parent 4967d65 commit 7932b4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/locale-switcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function LocaleSwitcher({ className }: LocalSwitcherProps) {
<span className="sr-only">
<Trans>Open options</Trans>
</span>
<LanguageIcon className="h-7 w-7" aria-hidden="true" />
<LanguageIcon className="size-7" aria-hidden="true" />
</Menu.Button>
</div>

Expand Down
4 changes: 2 additions & 2 deletions src/components/theme-switcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ export default function ThemeSwitcher({ className }: ThemeSwitcherProps) {
>
<button onClick={toggleTheme} className="flex items-center">
{isDarkMode ? (
<SunIcon className="h-7 w-7" />
<SunIcon className="size-7" />
) : (
<MoonIcon className="h-7 w-7" />
<MoonIcon className="size-7" />
)}
<span className="sr-only">
{isDarkMode ? t`Switch to light theme` : t`Switch to dark theme`}
Expand Down

0 comments on commit 7932b4a

Please sign in to comment.