fix(nav): navigation links are 19 px tall on a phone #155
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-web#155
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Every navigation target on the site is about 19 px tall. Measured at 375 px:
The repository already defines the right token —
src/style/variables.scss:254--min-touch-target: 3rem. It is honoured bysrc/style/shared/button.scss:22, bysrc/components/faq-filter.astro:38and by the logo (src/components/header.astro:27), and by nonavigation link anywhere.
WCAG 2.2 SC 2.5.8 (Target Size (Minimum), AA) is currently met only through the spacing exception:
the 16 px
--spacing-mdgaps keep 24 px circles from intersecting. That is compliance by accident— tightening any gap, or adding a fifth link, fails it. SC 2.5.5 (AAA, 44 px), Apple's 44 pt and
Android's 48 dp are failed outright.
Fix
Apply
min-block-size: var(--min-touch-target)with centred flex alignment to navigation linksbelow the
mediumbreakpoint, as vertical padding so the type size does not change. A singleshared rule beside
src/style/shared/button.scssis better than editing five components, sinceAstro's scoped styles will not reach into child components.
Keep the 16 px gaps.
Do this after the 320 px reflow fix — taller targets multiply the height of a navigation that
cannot currently wrap.
Breadcrumbs (
src/components/breadcrumbs.astro:72-81, 8 px gap plus a/separator) need theirown decision; showing only the parent crumb below
mediumis worth considering.Target size (operator decision)
44–48 px, not the 24 px the spacing exception would allow. The repository already defines
--min-touch-target: 3remand applies it to buttons, the FAQ filter and the logo; holdingnavigation to a lower bar than a button is not defensible, and compliance that depends on gaps never
tightening is not compliance.
Done when
below the
mediumbreakpoint.Part of gitborg/gitborg-docs#67.
supernaut refererade till detta ärende från bitborg/bitborg-docs2026-08-02 12:32:47 +00:00