File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,16 +25,20 @@ export const NavLink = ({
2525 className = { classNames (
2626 "relative font-medium flex sm:justify-center items-center pl-6 pr-6 h-16 transition-all duration-150 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/70 focus-visible:ring-inset" ,
2727 isActive
28- ? "text-primary hover:text-primary bg-surface-container-high border-l-2 border-primary sm:border-l-0 sm: rounded-none sm:bg-transparent sm:border -transparent"
28+ ? "text-primary hover:text-primary bg-surface-container-high sm:rounded-none sm:bg-transparent"
2929 : "text-on-surface hover:text-on-surface hover:bg-surface-container-high active:bg-surface-container"
3030 ) }
3131 onClick = { onClick }
3232 aria-current = { isActive ? "page" : undefined }
3333 >
3434 { isActive && (
3535 < >
36+ { /* desktop: top glow */ }
3637 < span className = "pointer-events-none absolute inset-x-3 top-0 hidden h-px rounded-full bg-gradient-to-r from-transparent via-primary/85 to-transparent sm:block" />
3738 < span className = "pointer-events-none absolute inset-x-5 top-0 hidden h-4 blur-md bg-gradient-to-r from-transparent via-primary/35 to-transparent sm:block" />
39+ { /* mobile: left glow */ }
40+ < span className = "pointer-events-none absolute left-0 inset-y-3 sm:hidden w-px rounded-full bg-gradient-to-b from-transparent via-primary/85 to-transparent" />
41+ < span className = "pointer-events-none absolute left-0 inset-y-5 sm:hidden w-4 blur-md bg-gradient-to-b from-transparent via-primary/35 to-transparent" />
3842 </ >
3943 ) }
4044 { children }
You can’t perform that action at this time.
0 commit comments