fix(a11y): two navigation landmarks are both called "Bitborg" #157
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#157
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 page exposes these navigation landmarks:
Two of them share a name:
src/components/main-navigation.astro:95usesnav.app.label(src/i18n/ui.ts:71/:343) ="Bitborg" — the "Open Bitborg" external link.
src/components/footer.astro:106usesnav.service.label(src/i18n/ui.ts:83/:355) ="Bitborg" — the footer service column.
A screen reader's landmark list offers "Bitborg navigation" twice with no way to tell them apart
(WCAG 1.3.1).
src/pages/404.astro:32-34already documents this exact rule and follows it there.Two smaller problems in the same strings:
nav.main.label("Main Navigation" / "Navigering") andnav.secondary.label("SecondaryNavigation" / "Sekundär navigering") repeat the role — announced as "Main Navigation navigation".
nav.legal.labelis the string "Legal" in both dictionaries (src/i18n/ui.ts:75and:347)and renders as visible Swedish copy in the footer (
src/components/footer.astro:122).Fix
src/i18n/ui.tsonly, both dictionaries.docs/content-style.md§ "Product & feature terms" saysthe git application is just "Bitborg", with the hostname added only where the website and the
application must be told apart — which is this case.
nav.app.labelnav.main.labelnav.secondary.labelnav.legal.labelnav.service.labelstays "Bitborg" — it is a visible footer heading, and the pair is unique oncenav.app.labelchanges.Done when
pnpm lang-checkpasses and the copy has been checked againstdocs/content-style.md.Part of gitborg/gitborg-docs#67.
supernaut refererade till detta ärende från bitborg/bitborg-docs2026-08-02 12:32:47 +00:00
fix(a11y): two navigation landmarks are both called "Gitborg"till fix(a11y): two navigation landmarks are both called "Bitborg"