Skip to content

Commit

Permalink
styles: restyle docs nav
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinwolfcr committed Sep 6, 2023
1 parent 350bb36 commit bb195b8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export function DocsNav({ title, repo, menus }: DocsNavProps) {
>
{({ setIsExpanded }) =>
menus.map((menu) => (
<div key={menu.href} className="w-full flex flex-col gap-2 mb-3">
<h4 className="typography-2 font-medium">{menu.label}</h4>
<div key={menu.href} className="w-full flex flex-col mb-3">
<h4 className="mb-1 typography-3 font-medium">{menu.label}</h4>
{menu.items.map((item) => {
const href = menu.href.concat(item.href)

Expand All @@ -53,7 +53,7 @@ export function DocsNav({ title, repo, menus }: DocsNavProps) {
href={href}
aria-current={href === pathname ? "page" : undefined}
aria-label={item.label}
className="typography-2 text-dimmed hover:text-base aria-[current=page]:text-accent transition-colors"
className="border-l border-base-6/50 typography-2 text-dimmed hover:text-base aria-[current=page]:text-base py-1 pl-3 transition-colors"
onClick={() => setIsExpanded(false)}
>
{item.label}
Expand Down

1 comment on commit bb195b8

@vercel
Copy link

@vercel vercel bot commented on bb195b8 Sep 6, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.