🎨 Palette: Improve keyboard accessibility for scrollable regions - #216
🎨 Palette: Improve keyboard accessibility for scrollable regions#216n24q02m wants to merge 1 commit into
Conversation
Adds tabindex, role, and aria-label to the scroller div to ensure it is keyboard scrollable. Updates global CSS focus-visible states to use high contrast outlines for better keyboard navigation. Co-authored-by: n24q02m <135627235+n24q02m@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
💡 What: Added explicitly high contrast
:focus-visibleoutlines to navigation links, buttons, theme toggle, and the table scroller. Also explicitly made the table scroller keyboard focusable usingtabindex="0",role="region", and anaria-label.🎯 Why: Without an explicit
tabindex, keyboard users cannot scroll overflow tables on small screens. Standard button focus states that only rely on a 1.08x brightness increase are nearly invisible and fail WCAG contrast requirements, preventing keyboard users from seeing what element is active.📸 Before/After: Before, buttons barely changed brightness when focused. Now, interactive elements have a clear, distinct 2px accent outline.
♿ Accessibility: Ensures keyboard scrollability on overflow containers and clear focus indications across the UI.
PR created automatically by Jules for task 4370215155702426918 started by @n24q02m