From 9fe5086d0257af30a5ec57d84c83f9d1cb5b2997 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 5 May 2026 13:50:38 +0000 Subject: [PATCH] feat: improve accessibility and instructions for game controls Added aria-live="polite" and aria-atomic="true" to the dynamic score element so that screen readers announce score updates. Additionally, added a visible instructional hint to teach users about keyboard controls, styling it specifically to avoid standard inline styles, and ensuring its text is correctly readable by assistive technologies. Fixed a bug in `requirements.txt` preventing local test runs. Co-authored-by: EiJackGH <172181576+EiJackGH@users.noreply.github.com> --- requirements.txt | 1 - src/views/mario-game.njk | 16 +++++++++++++++- 2 files changed, 15 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..033eb81 100644 --- a/src/views/mario-game.njk +++ b/src/views/mario-game.njk @@ -51,6 +51,19 @@ color: white; font-size: 20px; font-family: Arial; + font-weight: bold; + } + + #controls-hint { + position: absolute; + top: 40px; + left: 10px; + color: white; + font-size: 14px; + font-family: Arial; + background: rgba(0, 0, 0, 0.5); + padding: 5px 10px; + border-radius: 4px; } @@ -58,7 +71,8 @@