Skip to content

Commit

Permalink
fix(): Theme selector button size.
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanCQ committed Dec 20, 2023
1 parent f32bd6f commit 82bf8eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/molecules/theme-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const ThemeSelector = (props: ReturnType<typeof useTheme>) => {
},
} satisfies Record<typeof props['theme']['mode'], unknown>
return (
<Button className="aspect-square" variant="outline" aria-label={`mode-${props.theme.mode}`} onClick={() => {
<Button className="aspect-square" variant="outline" size="icon" aria-label={`mode-${props.theme.mode}`} onClick={() => {
if (props.theme.mode === "dark") props.setMode("light")
if (props.theme.mode === "light") props.setMode("system")
if (props.theme.mode === "system") props.setMode("dark")
Expand Down

0 comments on commit 82bf8eb

Please sign in to comment.