Skip to content

🎨 Palette: Add keyboard hints and score accessibility to Mario game#151

Open
EiJackGH wants to merge 1 commit into
mainfrom
palette-mario-game-ux-5063434797292382720
Open

🎨 Palette: Add keyboard hints and score accessibility to Mario game#151
EiJackGH wants to merge 1 commit into
mainfrom
palette-mario-game-ux-5063434797292382720

Conversation

@EiJackGH

@EiJackGH EiJackGH commented May 3, 2026

Copy link
Copy Markdown
Owner

💡 What

Added a small visual hint ("Press Space or Up Arrow to jump") in the top right corner of the Mario game widget, and improved the accessibility of the dynamic score counter. Also resolved a minor environment issue where requirements.txt contained an invalid venv entry that broke CI pipelines and local installations.

🎯 Why

Without standard native controls (like a <button>), users playing custom canvas or DOM-based games don't inherently know which keyboard keys they are supposed to press to interact. The added text hint makes the interaction immediately discoverable without trial and error.

♿ Accessibility

The #score element is now decorated with aria-live="polite" and aria-atomic="true". This ensures that screen readers will reliably and politely announce the player's score as it updates during gameplay, providing critical context to visually impaired users that would otherwise be missed.

📸 Before/After

(Visual changes verified locally via Playwright headless testing: The new #controls element accurately mirrors the styling of the #score text on the opposite side of the screen.)


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

- Added visual keyboard hint for interaction discovery.
- Added `aria-live` and `aria-atomic` to score for screen readers.
- Cleaned up invalid `venv` entry in `requirements.txt`.

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.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

Stale pull request message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant