From 00b4c3a8537b5708d231a83a00ca59485a6cb4ca Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2026 13:13:30 +0000 Subject: [PATCH] feat(ui): add ARIA score announcements and keyboard instructions to Mario game - Added `aria-live="polite"` and `aria-atomic="true"` to the score element to announce score changes for screen readers. - Added visible `#instructions` below the score explaining the custom "Space" or "Up Arrow" bindings to prevent user confusion. - Removed invalid `venv` entry from `requirements.txt` to fix pip installs. Co-authored-by: EiJackGH <172181576+EiJackGH@users.noreply.github.com> --- requirements.txt | 1 - src/views/mario-game.njk | 13 ++++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index cfaa995..4ad1501 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ numpy pandas requests -venv diff --git a/src/views/mario-game.njk b/src/views/mario-game.njk index 67b6bd7..a6bafae 100644 --- a/src/views/mario-game.njk +++ b/src/views/mario-game.njk @@ -52,13 +52,24 @@ font-size: 20px; font-family: Arial; } + + #instructions { + position: absolute; + top: 40px; + left: 10px; + color: white; + font-size: 14px; + font-family: Arial; + opacity: 0.8; + }
-
Score: 0
+
Score: 0
+
Press Space or Up Arrow to jump!