Skip to content

🎨 Palette: Improve keyboard accessibility and add ARIA attributes to mario game#126

Open
EiJackGH wants to merge 2 commits intomainfrom
ux/mario-game-accessibility-14226623491108992998
Open

🎨 Palette: Improve keyboard accessibility and add ARIA attributes to mario game#126
EiJackGH wants to merge 2 commits intomainfrom
ux/mario-game-accessibility-14226623491108992998

Conversation

@EiJackGH
Copy link
Copy Markdown
Owner

@EiJackGH EiJackGH commented Apr 6, 2026

💡 What:

Added a visible keyboard shortcut hint ("Press Space or Up Arrow to jump") to the Mario game and improved accessibility by adding ARIA attributes to the score element.

🎯 Why:

The game lacked visual instructions for how to play, making it unintuitive for new users. Additionally, the score was dynamically updating without announcing those changes to screen readers.

📸 Before/After:

Before: The score updated silently in the DOM, and there were no visual instructions.
After: The score now has aria-live="polite" and aria-atomic="true" to announce updates, and a clean text hint tells users how to jump.

♿ Accessibility:

  • Added aria-live="polite" to #score so screen readers will announce score updates gracefully.
  • Added aria-atomic="true" to #score to ensure the entire score element is read, not just the changed number.
  • Verified that the new control hint does not have aria-hidden="true", ensuring screen reader users also know the controls.

PR created automatically by Jules for task 14226623491108992998 started by @EiJackGH

…ario game

Adds a visible keyboard control hint for players to jump and `aria-live` and `aria-atomic` attributes to the `#score` element for proper screen reader announcements.

Co-authored-by: EiJackGH <172181576+EiJackGH@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Removing the built-in python module `venv` from `requirements.txt` fixes the CI pipeline failing on `pip install` with 'No matching distribution found for venv'.

Co-authored-by: EiJackGH <172181576+EiJackGH@users.noreply.github.com>
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