Skip to content

Commit

Permalink
secondary ghost
Browse files Browse the repository at this point in the history
  • Loading branch information
sphinxrave committed Nov 23, 2023
1 parent bb865cb commit 2616b18
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react/src/components/layout/InlayContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export function InlayContainer({ routes }: InlayContainerProps) {
asChild
className="justify-start"
size="lg"
variant={href === location.pathname ? "secondary" : "ghost"}
variant={
href === location.pathname ? "secondary" : "ghost-secondary"
}
>
<Link to={href}>
<div className={icon} />
Expand Down
8 changes: 8 additions & 0 deletions packages/react/src/routes/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ const router = createBrowserRouter([
path: "org404",
element: <div>OrgNotFound</div>,
},
{
path: "add_placeholder",
element: <Navigate to="/about/placeholder" />,
},
{
path: "add_placeholders",
element: <Navigate to="/about/placeholder" />,
},
{
path: "org/:org/channels",
element: <ChannelsOrg />,
Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/shadcn/ui/button.variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export const buttonVariants = cva(
"bg-secondary-9 text-base-12 hover:bg-secondaryA-4 focus-visible:ring-secondary-7 ",
ghost:
"hover:bg-primary-4 hover:text-base-12 focus-visible:ring-primary-7 active:bg-primaryA-7",
"ghost-secondary":
"hover:bg-secondary-4 hover:text-base-12 focus-visible:ring-secondary-7 active:bg-secondaryA-7",
link: "text-primary underline-offset-4 hover:underline focus-visible:underline focus-visible:ring-secondary-7",
},
size: {
Expand Down

0 comments on commit 2616b18

Please sign in to comment.