Skip to content

Commit c1ae5a5

Browse files
committed
feat(www): nav color
1 parent b8ed303 commit c1ae5a5

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

apps/www/app/(app)/docs/[[...slug]]/page.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { OpenInV0Cta } from "@/components/open-in-v0-cta"
1515
import { DocsPager } from "@/components/pager"
1616
import { DashboardTableOfContents } from "@/components/toc"
1717
import { badgeVariants } from "@/registry/new-york/ui/badge"
18-
import { ScrollArea } from "@/registry/new-york/ui/scroll-area"
1918

2019
interface DocPageProps {
2120
params: {

apps/www/components/sidebar-nav.tsx

+3-5
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,16 @@ export function DocsSidebarNavItems({
4444
pathname,
4545
}: DocsSidebarNavItemsProps) {
4646
return items?.length ? (
47-
<div className="grid grid-flow-row auto-rows-max text-sm">
47+
<div className="grid grid-flow-row auto-rows-max gap-0.5 text-sm">
4848
{items.map((item, index) =>
4949
item.href && !item.disabled ? (
5050
<Link
5151
key={index}
5252
href={item.href}
5353
className={cn(
54-
"group flex w-full items-center rounded-md border border-transparent px-2 py-1 hover:underline",
54+
"group flex w-full items-center px-2 py-1 font-normal text-foreground hover:underline underline-offset-2",
5555
item.disabled && "cursor-not-allowed opacity-60",
56-
pathname === item.href
57-
? "font-medium text-foreground"
58-
: "text-muted-foreground"
56+
pathname === item.href && "underline"
5957
)}
6058
target={item.external ? "_blank" : ""}
6159
rel={item.external ? "noreferrer" : ""}

0 commit comments

Comments
 (0)