DevTools: Make preview palette accessibile
This change makes palette switcher keyboard and sreen-reader accessible. The palette-swicher arrow icon is assigned a role button and is set aria-label "Preview palettes". Now, when user presses Enter or Space it opens up list of preview-palettes which is identical with click handler. Each preview-palette like Material, Custom CSS Variables, Page colors are assigned a role button because clicking anywhere in the preview-palette row or a particular swatch in the palette just opens up the palette. So, in this change palette is keyboard navigable through tabbing. Screen-reader accessibility: When user tabs through each of preview-palette or palette-switcher, it reads name and a role button. Gif showing preview palette changes https://imgur.com/tFknmcF Note: Gif updated to show keypresses Bug: 963183 Change-Id: I560b94d76e7e9a17755cc6cdac1e39643cc7811e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1688277 Commit-Queue: Chandani Shrestha <chshrest@microsoft.com> Reviewed-by:Joel Einbinder <einbinder@chromium.org> Cr-Commit-Position: refs/heads/master@{#682818}
Showing
Please register or sign in to comment