From 3ddbc76dfc206896705aa5f15c8cd53b26b5cbfc Mon Sep 17 00:00:00 2001 From: artheru Date: Wed, 10 Jun 2026 08:21:16 +0800 Subject: [PATCH] a11y: keyboard focus indicators + canvas label (0.59.0) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - the site had focus styles only on inputs, so keyboard navigation was invisible across every button, link, nav item, card and CTA - add a global :focus-visible ring (cyan, gold for primary CTAs) — shows for keyboard users only, follows each element's radius - label the decorative tavern canvas (role=img + aria-label); its overlay hotspots remain separately focusable/labeled - verified live: Tab focuses a nav button with a 2px cyan ring, matches :focus-visible, canvas announced as 'Animated tavern scene' --- index.html | 2 +- package.json | 2 +- src/Scene2D.jsx | 2 +- src/TavernGame.jsx | 2 +- src/styles.css | 4 ++++ 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 552fd1c..f0194d2 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - + diff --git a/package.json b/package.json index 11fb711..624f041 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "amerc-site", - "version": "0.58.0-docscode", + "version": "0.59.0-a11y", "private": true, "type": "module", "scripts": { diff --git a/src/Scene2D.jsx b/src/Scene2D.jsx index 71c013e..c8b40cf 100644 --- a/src/Scene2D.jsx +++ b/src/Scene2D.jsx @@ -7,7 +7,7 @@ import Account from './Account.jsx'; import TavernGame from './TavernGame.jsx'; import { api } from './api.js'; -const RELEASE = '0.58.0-docscode'; +const RELEASE = '0.59.0-a11y'; const NAV = [ { id: 'home', label: 'Tavern' }, diff --git a/src/TavernGame.jsx b/src/TavernGame.jsx index 3b0d4be..c5888d5 100644 --- a/src/TavernGame.jsx +++ b/src/TavernGame.jsx @@ -114,7 +114,7 @@ export default function TavernGame({ onHotspot, stats }) { return (
- + {!ready &&
loading tavern…
}