Make file-type filter buttons accessible by keyboard.
This allows users to: - focus file-type filter buttons by TAB key. - toggle state of focused buttons by ENTER or SPACE keys. To do this, we use <button> element instead of default <div> and style them per the design, with html{.pointer-active,.focus-outline-visible} style to control <button> state activations and keyboard focus rings. And since <button> has in-built ARIA support, that comes for free too. Bug: 1114721 Test: Manual test with flag #files-filters-in-recents. Change-Id: Ib709f79d24ab8c3a41aabdae2be4cb237c1fad5d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2358947 Commit-Queue: Naoki Fukino <fukino@chromium.org> Reviewed-by:Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#798608}
Showing
Please register or sign in to comment