File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
packages/ui/src/components Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,18 @@ const TabNavItem: FC<NavLinkProps> = ({ className, ...props }) => {
1616 return (
1717 < NavLink
1818 role = "tab"
19- // Active tab Radial background - removed till we add different style
2019 className = { ( { isActive } ) =>
2120 cn (
22- 'block relative place-content-center whitespace-nowrap m-0 my-1 h-9 px-0 text-14 font-normal leading-none text-foreground-2 focus-visible:duration-0 duration-150 ease-in-out after:pointer-events-none after:absolute after:inset-[-0.25rem_0] after:block after:border-b after:border-solid after:border-b-transparent hover:text-foreground-1 disabled:pointer-events-none disabled:opacity-50' ,
21+ 'block relative place-content-center whitespace-nowrap m-0 my-1 h-9 px-0 text-14 font-normal leading-none text-foreground-2 focus-visible:duration-0 duration-150 ease-in-out hover:text-foreground-1 disabled:pointer-events-none disabled:opacity-50 ' ,
22+ // bottom border of active tab
23+ 'after:pointer-events-none after:absolute after:inset-[-0.25rem_0] after:block after:border-b after:border-solid after:border-b-transparent' ,
2324 { 'text-foreground-1 after:border-borders-9' : isActive } ,
25+ /*
26+ * TODO: Active tab Radial background is hidden until it's adjusted to the light theme
27+ */
28+ // radial gradient of active tab
29+ // 'before:pointer-events-none before:absolute before:left-1/2 before:top-1/2 before:-z-10 before:h-[calc(100%+40px)] before:w-[calc(100%+60px)] before:-translate-x-1/2 before:-translate-y-1/2 before:bg-transparent',
30+ // { 'before:[background-image:var(--canary-tab-background-gradient)]': isActive },
2431 className
2532 )
2633 }
You can’t perform that action at this time.
0 commit comments