DevTools: Make console message source links keyboard accessible
Make all console message anchor source links keyboard accessible by adding the anchor element to the _selectableChildren array in the ConsoleViewMessage UI component which will use _selectableChildren to manage keyboard navigation and focus. This is required to meet WCAG 2.1.1 Keyboard success criteria. See: https://www.w3.org/WAI/WCAG21/quickref/#keyboard For the tests I added an additional ArrowUp or ArrowDown to move focus to the original desired target under test, occasionally I would include the content of the source link in the test's expected results for additional guards against regressions. on the previous message, then use the up and down arrow keys to navigate between visible links within the console messages. Screenshot: https://i.imgur.com/ZUDFsUV.png Gif: https://i.imgur.com/UlhVhwn.gifv Test: Put focus in the console input, then use Shift + Tab to set focus Bug: 963183 Change-Id: I8e094506adeed099a2b0c1b81c4b4394f83129a6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1638137 Commit-Queue: John Emau <John.Emau@microsoft.com> Reviewed-by:Mathias Bynens <mathias@chromium.org> Reviewed-by:
Yang Guo <yangguo@chromium.org> Cr-Commit-Position: refs/heads/master@{#702981}
Showing
Please register or sign in to comment