Skip to content

Commit

Permalink
minor: more style fixes in navtab recent refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
geclos committed Jul 30, 2024
1 parent 244906b commit 6d8fb84
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/web-ui/src/ds/atoms/NavTab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Slot } from '@radix-ui/react-slot'

import { cn } from '$ui/lib/utils'

import Text from '../Text'

type INavTabItem = {
label: string
selected?: boolean
Expand All @@ -25,13 +27,17 @@ function NavTabItem({
'border-b-2 border-accent-foreground': selected,
})}
>
{label}
<Text.H5M color={selected ? 'accentForeground' : 'foregroundMuted'}>
{label}
</Text.H5M>
</Comp>
)
}

function NavTabGroup({ children }: { children: ReactNode }) {
return <nav className='flex flex-row px-6 bg-background'>{children}</nav>
return (
<nav className='flex flex-row px-6 gap-2 bg-background'>{children}</nav>
)
}

function NavTab({ tabs }: { tabs: INavTabItem[] }) {
Expand Down

0 comments on commit 6d8fb84

Please sign in to comment.