From 24219e4d9a0fda40bf5fdc558eeb76fc64364c09 Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Sat, 11 Apr 2026 20:14:03 +0200 Subject: [PATCH] =?UTF-8?q?a11y(loyalty):=20Phase=204.2=20=E2=80=94=20acce?= =?UTF-8?q?ssibility=20audit=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix 15 accessibility issues across loyalty templates: Modals (4 fixes): - storefront/dashboard.html: barcode modal — add role="dialog", aria-modal, aria-labelledby, @keydown.escape - storefront/enroll.html: terms modal — add role="dialog", aria-modal, aria-labelledby, aria-label on close button - store/enroll.html: success modal — add role="dialog", aria-modal, aria-labelledby, @keydown.escape - store/terminal.html: PIN entry — add aria-live="polite" on digit display with role="status" for screen reader announcements Icon-only buttons (10 fixes): - shared/pins-list.html: edit, delete, unlock — add aria-label - admin/programs.html: view, edit, delete, activate/deactivate — add aria-label (dynamic for toggle state) - store/terminal.html: clear customer, backspace — add aria-label All buttons also get explicit type="button" where missing. 342 tests pass. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../loyalty/templates/loyalty/admin/programs.html | 12 ++++++------ .../loyalty/templates/loyalty/shared/pins-list.html | 12 +++++++----- .../loyalty/templates/loyalty/store/enroll.html | 7 +++++-- .../loyalty/templates/loyalty/store/terminal.html | 8 ++++---- .../templates/loyalty/storefront/dashboard.html | 6 ++++-- .../loyalty/templates/loyalty/storefront/enroll.html | 5 +++-- 6 files changed, 29 insertions(+), 21 deletions(-) diff --git a/app/modules/loyalty/templates/loyalty/admin/programs.html b/app/modules/loyalty/templates/loyalty/admin/programs.html index 23fcffd6..a7fa92e2 100644 --- a/app/modules/loyalty/templates/loyalty/admin/programs.html +++ b/app/modules/loyalty/templates/loyalty/admin/programs.html @@ -215,7 +215,7 @@ @@ -224,26 +224,26 @@ - - diff --git a/app/modules/loyalty/templates/loyalty/shared/pins-list.html b/app/modules/loyalty/templates/loyalty/shared/pins-list.html index 394c3ca6..265cf2c7 100644 --- a/app/modules/loyalty/templates/loyalty/shared/pins-list.html +++ b/app/modules/loyalty/templates/loyalty/shared/pins-list.html @@ -103,17 +103,19 @@ {% if show_crud %}
- - -
diff --git a/app/modules/loyalty/templates/loyalty/store/enroll.html b/app/modules/loyalty/templates/loyalty/store/enroll.html index be852735..73ca1e43 100644 --- a/app/modules/loyalty/templates/loyalty/store/enroll.html +++ b/app/modules/loyalty/templates/loyalty/store/enroll.html @@ -114,13 +114,16 @@ {# noqa: FE-004 #} -
+