Repository navigation
feat(a11y): make the pages work on phones, keyboards and screen readers - #9
Merged
Merged
Conversation
- Leaderboard fits phones: the guesses column is hidden under 650px,
cells are tighter, and scores no longer wrap.
- Nerd Font icons are hidden from screen readers; the profile lock is
labelled "hidden until you guess"; CSS-generated glyphs get empty alt.
- Calendar days have labels ("Day 3, guessed", "Day 5, locked");
locked days are marked disabled and readable at 50% opacity.
- Keyboard focus looks like hover, plus a visible outline.
- Errors and notices are announced (role alert/status).
- Animations and transitions stop with prefers-reduced-motion.
Co-Authored-By: lazytrek <352825308+lazytrek@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An accessibility pass that keeps v1's look. Only CSS and markup change, plus labels computed for the calendar.
aria-hidden.#, podium snowflakes) get empty alt text (content: "…" / "").:focus-visiblegets the same colour swap as hover, plus a yellow outline.role="alert"and notices ("Locked in!", name changed) arerole="status", so screen readers announce them.Pre-launch, so no version bump and no changelog note.
Check
Not tested
No real screen reader (VoiceOver, NVDA or TalkBack) was used. Empty alt text on CSS glyphs needs Firefox 128 or later; older Firefox drops those glyphs entirely.
Co-Authored-By: lazytrek 352825308+lazytrek@users.noreply.github.com