Header dropdowns close after a click; a tint circle behind the side nav
The dropdowns opened on any focus inside, and a click leaves focus on the link, so they stayed open after the pointer left; now only keyboard focus (:focus-visible) opens them besides hover. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3308b5f1b5
commit
dc003a5487
2 changed files with 15 additions and 3 deletions
|
|
@ -140,7 +140,15 @@ export default function PageShell({ title, intro, sections, sideNav = false }: P
|
|||
style={{ width: "calc((100% - 72rem) / 2 + 1rem)" }}
|
||||
>
|
||||
<div className="sticky pt-8 pl-4 pr-2" style={{ top: "calc(var(--header-h, 5rem) + 1rem)" }}>
|
||||
<SectionNav sections={sections.map((s) => ({ id: s.id, label: s.title }))} wrap />
|
||||
<div className="relative">
|
||||
{/* A solid circle behind the list, centered on it: the
|
||||
tint, which the nav's text reads on in either mode. */}
|
||||
<div
|
||||
aria-hidden="true"
|
||||
className="absolute top-1/2 left-1/2 -z-10 aspect-square w-[min(150%,22rem)] -translate-x-1/2 -translate-y-1/2 rounded-full bg-tint"
|
||||
/>
|
||||
<SectionNav sections={sections.map((s) => ({ id: s.id, label: s.title }))} wrap />
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
{bands}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue