a11y: set HTML lang, add reduced-motion CSS, hide decorative SVG elements#84
Merged
Conversation
…decorative SVG elements - index.html: lang="en" → lang="no" so screen readers use Norwegian pronunciation - app.css: @media (prefers-reduced-motion: reduce) disables .fade-in animation - bodymap.jsx: aria-hidden="true" on decorative body outline <g> and FRONT/BACK <text> in both HeatmapBodySVG and BodySVG so screen readers skip non-interactive silhouette elements Closes #68, #81, #82 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.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.
Summary
Three trivial one-liner fixes that together make the app safer for screen readers and users with motion sensitivity.
index.html:lang="en"→lang="no"so screen readers use Norwegian pronunciation for all UI textapp.css:@media (prefers-reduced-motion: reduce)disables the.fade-inkeyframe animation for users who have enabled "Reduce Motion" in their OS settingsbodymap.jsx:aria-hidden="true"on the decorative body outline<g>(head circle, neck polygon, torso path) and the FRONT/BACK<text>label in bothHeatmapBodySVGandBodySVG— screen readers now skip the silhouette and focus on the labelled muscle shapesTest plan
<html>element in DevTools — confirmlang="no".fade-inelements appear instantly with no animationCloses #68, #81, #82
🤖 Generated with Claude Code