🎨 Palette: Add screen reader support for score updates#141
Conversation
Co-authored-by: EiJackGH <172181576+EiJackGH@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Co-authored-by: EiJackGH <172181576+EiJackGH@users.noreply.github.com>
|
Stale pull request message |
💡 What: Added
aria-live="polite"andaria-atomic="true"to the dynamic score display inmario-game.njk.🎯 Why: To make the game more accessible for users with screen readers. Without these attributes, screen readers would not proactively announce when the score increments.
📸 Before/After: Visually, the experience remains identical. The enhancement is fully invisible, existing only in the DOM semantics.
♿ Accessibility: By setting
aria-live="polite", the screen reader is instructed to wait until its current task is finished before announcing the new score, avoiding jarring interruptions.aria-atomic="true"ensures the screen reader announces the full "Score: X" string, providing full context rather than just reading an isolated number.PR created automatically by Jules for task 627663231500320013 started by @EiJackGH