chore(nav): remove dead navigation CSS and redundant attributes #161
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#161
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?
Found while reviewing the navigation. None of these breaks anything.
src/components/user-menu.astro:38-58styles.sign-out-form, butsrc/components/sign-out.astro:55renders class.sign-out. The selector never matches; therules that do the work are the near-identical copy at
sign-out.astro:29-45. About twenty linesof dead CSS on every page.
src/components/main-navigation.astro:21-25returns the string"false", so every inactive linkships
aria-current="false". Valid ARIA, but returningundefinedmakes Astro omit theattribute. Do not change
isActivePathorsrc/lib/nav.test.ts— only the string thewrapper returns.
src/components/language-switcher.astro:45,50setsaria-labelandtitleto the same text.The accessible name comes from
aria-label;titleonly adds a duplicate desktop tooltip anddoes nothing on touch.
src/style/variables.scss:54describes--color-btn-secondary-*as "the nav 'Skapa konto'", butthat navigation item is an
IconLinknow, not a button. Stale comment.Done when
src/lib/nav.test.tspasses unchanged.aria-currentattribute; the current page still carriesaria-current="page"in both languages.pnpm lintandpnpm checkpass.Part of gitborg/gitborg-docs#67.
supernaut refererade till detta ärende från bitborg/bitborg-docs2026-08-02 12:32:47 +00:00