40C3: keep mouse-focused links readable in dark mode
All checks were successful
/ build (push) Successful in 1m57s
/ accessibility (push) Successful in 3m56s

This commit is contained in:
Stefan Bethke 2026-11-15 18:59:59 +01:00
commit f512c1df6e

View file

@ -128,6 +128,14 @@ a:focus-visible {
background: var(--c40-green); background: var(--c40-green);
} }
/* Zen gives every focused link the hover colour, which is dark here. A link clicked with the
mouse keeps that focus (e.g. a tour card after going back) but gets no green chip, so its text
would vanish on the dark background. Only plain text links and the schedule's tour titles:
buttons, cards, menus and the header have their own colours. */
:is(.layout__main a:not([class]), .schedule__title):focus:not(:focus-visible, :hover) {
color: var(--color-link);
}
.header__logo:hover, .header__logo:hover,
.header__logo:focus-visible { .header__logo:focus-visible {
background: none; background: none;