Skip to content

Commit

Permalink
fix(header): resolve glitch in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleJKC authored and lxchapu committed Aug 3, 2024
1 parent 596d8b3 commit bd5e748
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/header/HeaderContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ function HeaderMenu({ isBgShow }: { isBgShow: boolean }) {

return (
<nav
className={clsx('relative rounded-full group pointer-events-auto duration-100', {
'shadow-lg shadow-zinc-800/5 border border-primary bg-white/50 dark:bg-zinc-800/50 backdrop-blur':
className={clsx('relative rounded-full group pointer-events-auto duration-200', {
'bg-gradient-to-b from-zinc-50/70 to-white/90 shadow-lg shadow-zinc-800/5 ring-1 ring-zinc-900/5 backdrop-blur-md dark:from-zinc-900/70 dark:to-zinc-800/90 dark:ring-zinc-100/10':
isBgShow,
})}
onMouseMove={handleMouseMove}
>
<div
className="absolute -z-1 -inset-px rounded-full opacity-0 group-hover:opacity-100"
className="absolute -z-1 -inset-px rounded-full opacity-0 group-hover:opacity-100 duration-500"
style={{ background }}
aria-hidden
></div>
Expand Down

0 comments on commit bd5e748

Please sign in to comment.