segmented-field-menu

Created about 6 hours ago

attributes
additional_license_urlshttps://github.com/MengTo/Skills/blob/2f8cb46167bec49ee3c4a6ca37972fc065b6b47e/agent-skills/ui/segmented-field-menu/demo/assets/THREE-LICENSE.txt
descriptionCreate an inset upper-right navigation dock with compact icon-and-label segments, a pale selected segment and a matching footer dock for an editorial landing page.
import_scopesignals-cleared-supporting-files
licenseMIT
license_urlhttps://github.com/MengTo/Skills/blob/2f8cb46167bec49ee3c4a6ca37972fc065b6b47e/LICENSE
namesegmented-field-menu
publisherMengTo
repository_urlhttps://github.com/MengTo/Skills
source_urlhttps://github.com/MengTo/Skills/blob/2f8cb46167bec49ee3c4a6ca37972fc065b6b47e/agent-skills/ui/segmented-field-menu/SKILL.md
upstream_copyrightCopyright (c) 2026 Meng To, Copyright © 2010-2023 three.js authors
upstream_revision2f8cb46167bec49ee3c4a6ca37972fc065b6b47e

Segmented Field Menu

Put a nav landmark on the same content inset as the wordmark. Use a softly raised, dark housing with 3–4px inner padding. Give segments a shared height, small radius and restrained gap. Use one icon family such as Solar Duotone. When selected, reverse the ink onto a pale ivory plate. Reserve hover for a smaller change.

Use ordinary fragment anchors for destinations. Use a real button for actions such as opening a reader. Determine the current section against a stable reading line, rather than from whichever observer callback ran last. Keep a single aria-current="location" inside each dock. Preserve the browser's hash and Back behavior, and ensure focus lands at a useful destination when the link is activated.

On narrow screens shorten the visible labels or show the icons alone. Give each icon-only control an accessible name, a reliable touch target and a visible focus ring. Mark decorative SVGs aria-hidden. Reuse the same housing and ink tokens for the footer, even when its labels differ.

Try the last link, return to the first, then use browser Back. Check the selected and hovered states together, long translations and keyboard order at 320px.

Open the interactive study to inspect the technique.


Copyright (c) 2026 Meng To Copyright © 2010-2023 three.js authors

The license files are attached. MIT · MIT

The attached ZIP contains the pinned supporting files cleared for import. Applicable license notices are attached or included when cleared.

Like how this is organised?

Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.