From 7b10433889382cf823f855a2be41e5478424fe8c Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 8 Mar 2026 16:19:46 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20Make=20file=20headers?= =?UTF-8?q?=20keyboard=20accessible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: praxstack <73683289+praxstack@users.noreply.github.com> --- .Jules/palette.md | 8 ++++++-- public/index.html | 22 +++++++++++++++++++--- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/.Jules/palette.md b/.Jules/palette.md index 082d77a..ccf8229 100644 --- a/.Jules/palette.md +++ b/.Jules/palette.md @@ -1,3 +1,7 @@ ## 2024-05-15 - ARIA and Focus Polish for Review Modals -**Learning:** Found an accessibility issue pattern where custom visual interactive elements like comment icons embedded in diff views lack both ARIA descriptions and `:focus-visible` styling, making them invisible and unexplained to keyboard/screen reader users. -**Action:** When adding interactive icons to complex nested views (like a diff viewer), always pair ARIA labels with explicit `:focus-visible` styling that matches the `:hover` interaction to ensure full keyboard support. +**Learning:** Found an accessibility issue pattern where custom visual interactive elements like comment icons embedded in diff views lack both semantic ARIA labels and clear focus rings, making them invisible to screen readers and difficult to navigate via keyboard. +**Action:** When adding interactive icons to complex nested views (like a diff viewer), always pair ARIA labels with explicit `:focus-visible` styling (`outline: 2px solid var(--accent); outline-offset: -2px;`) to ensure full keyboard and screen reader accessibility without adding custom CSS classes. + +## 2024-05-20 - Custom Interactive Div Accessibility +**Learning:** In vanilla JavaScript UI with custom interactive components like accordions (e.g., file diff expanders built with `