From 9fd30acb9ec91ea14e1a9f70f90622cc7a4b076c Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 27 Mar 2026 05:46:43 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20Improve=20Staff=20Acc?= =?UTF-8?q?ess=20Modal=20UX=20&=20Accessibility?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add aria-haspopup="dialog" and role="button" to Staff Access link - Add aria-label to private-pass-input - Implement auto-focus and Enter-key submission in js/main.js Co-authored-by: LVT-ENG <214667862+LVT-ENG@users.noreply.github.com> --- .jules/palette.md | 3 +++ index.html | 4 ++-- js/main.js | 12 ++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 .jules/palette.md diff --git a/.jules/palette.md b/.jules/palette.md new file mode 100644 index 0000000..62b9e30 --- /dev/null +++ b/.jules/palette.md @@ -0,0 +1,3 @@ +## 2025-05-15 - Staff Access Accessibility & UX +**Learning:** Adding `aria-haspopup="dialog"` and `role="button"` to triggers for modal dialogs is essential for screen readers to properly announce the interaction. Focus management (auto-focusing the first input) and keyboard support (Enter key) are critical for power users and those with motor impairments. +**Action:** Always ensure modal triggers have appropriate ARIA roles and that modals implement focus management and keyboard listeners for common actions. diff --git a/index.html b/index.html index 1ec1ae4..623389e 100644 --- a/index.html +++ b/index.html @@ -21,7 +21,7 @@