Skip to content

Meet AA contrast on the site, and answer its quiz from the keyboard - #25

Merged
alxkm merged 1 commit into
masterfrom
contrast-and-keyboard
Oct 23, 2026
Merged

alxkm merged 1 commit into
masterfrom
contrast-and-keyboard

Conversation

@alxkm

@alxkm alxkm commented Oct 23, 2026

Copy link
Copy Markdown
Owner
  • Contrast (WCAG AA) in both themes. Lighthouse flagged the light orange (3.9:1 on white, 3.5:1 on the selected tab) and highlight.js's GitHub keyword, built-in and tag colours (down to 3.3:1). In dark mode the white text on orange buttons was 2.5:1; Lighthouse missed it because it only runs light. Now: orange #b54708 (5.4:1), dark text on dark-mode buttons (7.5:1), GitHub's current darker code colours. Lighthouse accessibility: 100 on the front page, a question page and the quiz, in light and in dark.

  • Keyboard quiz: a-h or 1-8 pick an option, Enter checks and then goes on, s skips. Option letters are shown, with a hint line (hidden on touch screens). Typing in the search box is left alone.

  • Search matches all words in any order instead of the exact phrase.

  • 404.html: offers to search for the words in the missing address (/q/volatile-arrays/ becomes a search for "volatile arrays"); ?search= fills the search box.

  • ./gradlew test passes

  • Built with tools/site, checked in Chrome: keyboard answering, dark mode, search, 404

Lighthouse flagged the light theme's orange (3.9:1 on white) and three
of highlight.js's GitHub colours (down to 3.3:1); the dark theme's white
text on orange buttons was 2.5:1 and went unflagged only because
Lighthouse runs in light mode. Accessibility is now 100 in both themes
on the front page, a question page and the quiz.

- Letters or digits pick an option, Enter checks and then moves on, S
  skips, as in the terminal quiz.
- Search matches every word in any order instead of the exact phrase.
- 404.html offers to search for the words in the missing address, and
  ?search= opens the site with a query filled in.
@alxkm
alxkm merged commit 5cf43a7 into master Oct 23, 2026
5 checks passed
@alxkm
alxkm deleted the contrast-and-keyboard branch October 23, 2026 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant