fix(a11y): the skip link does not move focus in Safari #158
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#158
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?
src/layouts/base.astro:144targets#main-content, andsrc/layouts/base.astro:147<main id="main-content">has notabindex="-1"(the onlytabindexinsrc/is insignup-form.astro).WebKit does not move focus to a non-focusable fragment target: it scrolls, leaves focus in the
header, and the next Tab walks straight back into the navigation. On iOS every browser is WebKit,
so the bypass-blocks mechanism scrolls without actually bypassing anything — on pages where the
chrome is 278-360 px and roughly fourteen tab stops.
Fix
Add
tabindex="-1"to<main id="main-content">, with a comment saying why, so it does not lookremovable.
Done when
<main>: the next Tablands on the first link in the content, not back in the header.
<main>itself is unchanged for mouse users.Part of gitborg/gitborg-docs#67.
supernaut refererade till detta ärende från bitborg/bitborg-docs2026-08-02 12:32:47 +00:00