Accessibility: keyboard move entry and screen reader support (#72) (#115)

* commented out lesson and learning strip until lessons are established

* reword the hero section

* change layout and working on puzzle section - remove top div as it was
redundant

* amend flash message on replay

* switch cancel session for return home

* remove system theme toggle since this is the default, leaving only light
and dark toggles

* add keyboard and screen reader support for play (#72)

First draft covering the accessibility work in #72:\n\n- labelled SAN/UCI move input, validated against the tablebase and applied\n  by the board hook, plus an accessible promotion picker\n- live-region announcements for moves, checks, checkmates and solve/fail,\n  and a hidden text summary of the position\n- accessible labels, focus ring, skip link, keyboard-friendly review table\n  and non-colour grade cues\n- WCAG AA text contrast roles and a responsive play surface\n- regression tests for move entry, announcements and link-style CTAs
This commit is contained in:
2026-11-09 12:09:07 +01:00
committed by GitHub
parent 8df7ac982c
commit 805c2f1150
31 changed files with 812 additions and 136 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ defmodule ChesstrainerWeb.UserLive.Login do
<p class="settings-subtitle my-4">
Don't have an account? <.link
navigate={~p"/users/register"}
class="font-semibold text-primary hover:underline"
class="font-semibold text-primary-text hover:underline"
phx-no-format
>Sign up</.link> for an account now.
</p>
@@ -56,7 +56,7 @@ defmodule ChesstrainerWeb.UserLive.Login do
<p class="text-center text-sm">
<.link
navigate={~p"/users/reset-password"}
class="font-semibold text-primary hover:underline"
class="font-semibold text-primary-text hover:underline"
>
Forgot your password?
</.link>
@@ -30,7 +30,7 @@ defmodule ChesstrainerWeb.UserLive.Profile do
class={[
"border-b-2 -mb-px px-3 py-2 text-sm font-semibold",
if(@live_action == tab.id,
do: "border-primary text-primary",
do: "border-primary text-primary-text",
else: "border-transparent text-base-content/60 hover:text-base-content"
)
]}
@@ -14,7 +14,10 @@ defmodule ChesstrainerWeb.UserLive.Registration do
<h1 class="settings-header">Register for an account</h1>
<p class="settings-subtitle my-4">
Already registered?
<.link navigate={~p"/users/log-in"} class="font-semibold text-primary hover:underline">
<.link
navigate={~p"/users/log-in"}
class="font-semibold text-primary-text hover:underline"
>
Log in
</.link>
to your account now
@@ -51,7 +51,7 @@ defmodule ChesstrainerWeb.UserLive.ResetPassword do
<p class="text-center text-sm">
<.link
navigate={~p"/users/log-in"}
class="font-semibold text-primary hover:underline"
class="font-semibold text-primary-text hover:underline"
>
Back to log in
</.link>