fix(ui) : improve control visibility while preserving header styling
This commit is contained in:
@@ -86,10 +86,10 @@ export function GuidePageShell({
|
||||
href={baseHref}
|
||||
aria-current={!section ? "page" : undefined}
|
||||
className={cn(
|
||||
"flex min-h-8 shrink-0 items-center gap-2 whitespace-nowrap rounded-md px-3 text-sm transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
||||
"flex min-h-8 shrink-0 items-center gap-2 whitespace-nowrap rounded-md border px-3 text-sm transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
||||
!section
|
||||
? "bg-primary/15 font-semibold text-primary"
|
||||
: "text-muted-foreground hover:bg-muted hover:text-foreground",
|
||||
? "border-primary bg-primary/15 font-semibold text-primary"
|
||||
: "border-control-border bg-control text-foreground hover:border-control-border-hover hover:bg-control-hover",
|
||||
)}
|
||||
prefetch={false}
|
||||
>
|
||||
@@ -108,10 +108,10 @@ export function GuidePageShell({
|
||||
href={`${baseHref}/${item.slug}`}
|
||||
aria-current={section === item.slug ? "page" : undefined}
|
||||
className={cn(
|
||||
"flex min-h-8 shrink-0 items-center gap-2 whitespace-nowrap rounded-md px-3 text-sm transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
||||
"flex min-h-8 shrink-0 items-center gap-2 whitespace-nowrap rounded-md border px-3 text-sm transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
||||
section === item.slug
|
||||
? "bg-primary/15 font-semibold text-primary"
|
||||
: "text-muted-foreground hover:bg-muted hover:text-foreground",
|
||||
? "border-primary bg-primary/15 font-semibold text-primary"
|
||||
: "border-control-border bg-control text-foreground hover:border-control-border-hover hover:bg-control-hover",
|
||||
)}
|
||||
prefetch={false}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user