From 6810f779f71566d8f1b6836163c64397e0325a2c Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 13:43:10 +0000 Subject: [PATCH] feat(ux): improve accessibility and clarity in mario game view - Added `aria-live` and `aria-atomic` to the score element so screen readers can announce dynamic updates. - Added explicit on-screen keyboard instructions so users understand controls immediately without guessing. Co-authored-by: EiJackGH <172181576+EiJackGH@users.noreply.github.com> --- src/views/mario-game.njk | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/views/mario-game.njk b/src/views/mario-game.njk index 67b6bd7..2c86248 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