Skip to content

Commit

Permalink
Improve tab button design (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
kafkas authored Sep 13, 2023
1 parent 80c9bd5 commit e6023d9
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions packages/ui/app/src/sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,32 @@ export const Sidebar: React.FC<Sidebar.Props> = ({ hideSearchBar = false, expand
>
<div className="flex min-w-0 items-center justify-start space-x-3">
<div className="min-w-fit">
<FontAwesomeIcon
className={classNames("h-5 w-5", {
"text-accent-primary": idx === activeTabIndex,
"t-muted group-hover/tab-button:text-accent-primary":
idx !== activeTabIndex,
})}
icon={tab.icon}
/>
<div
className={classNames(
"flex h-6 w-6 items-center border justify-center rounded-md group-hover/tab-button:bg-tag-primary group-hover/tab-button:border-border-primary",
{
"bg-tag-primary border-border-primary": idx === activeTabIndex,
"bg-tag-default-light/5 dark:bg-tag-default-dark/5 border-transparent":
idx !== activeTabIndex,
}
)}
>
<FontAwesomeIcon
className={classNames(
"h-3.5 w-3.5 group-hover/tab-button:text-accent-primary",
{
"text-accent-primary": idx === activeTabIndex,
"t-muted": idx !== activeTabIndex,
}
)}
icon={tab.icon}
/>
</div>
</div>

<Text ellipsize>{tab.title}</Text>
<Text ellipsize className="font-medium">
{tab.title}
</Text>
</div>
</button>
))}
Expand Down

1 comment on commit e6023d9

@vercel
Copy link

@vercel vercel bot commented on e6023d9 Sep 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

fern-dev – ./packages/ui/fe-bundle

fern-dev-git-main-buildwithfern.vercel.app
fern-dev-buildwithfern.vercel.app
devtest.buildwithfern.com
app-dev.buildwithfern.com

Please sign in to comment.