Skip to content

Commit

Permalink
fix blur on safari for theme toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
lewismorgan committed May 3, 2024
1 parent c6ee89f commit a763e5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function RootLayout({
<html lang="en" className={`${source_code_pro.variable} ${exo_2.variable}`}>
<body className="flex min-h-screen min-w-full flex-col font-sans ">
<ThemeProvider attribute="class" defaultTheme="dark">
<div className="fixed bottom-20 right-2 h-fit w-fit backdrop-blur-sm md:right-10 md:top-10">
<div className="fixed bottom-20 right-2 h-fit w-fit md:right-10 md:top-10">
<ThemeToggle />
</div>
<div className="mb-5 grow">{children}</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/client/theme-toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const ThemeToggle = () => {
<Button
aria-label="Toggle Theme"
variant={'outline'}
className="bg-transparent p-3 focus:outline-none"
className="bg-transparent p-3 backdrop-blur-sm focus:outline-none"
onClick={() => setTheme(isDark ? 'light' : 'dark')}
>
{isDark ? <LightSide /> : <DarkSide />}
Expand Down

0 comments on commit a763e5d

Please sign in to comment.