[WebUI][NTP] realbox a11y improvements
- Makes <ntp-realbox-button> and <ntp-realbox-match> custom elements focusable with proper aria roles and labels. Removes or replaces focusable child elements of these custom elements. Removing the <a> element in <ntp-realbox-match> has the added benefit of eliminating the possilbity of navigation to a suggeestion without going through the browser. - Adds tooltips and aria labels to the suggestion header toggle button: - Tooltip: "Hide suggestions" / "Show suggestions" - Voiceover: "Hide the 'X' section" / "Show the 'X' section" - Allows the suggestion header text to truncate if needed. Bug: 1084718 Change-Id: I063821d9bfcef191deb070007c028c44903feaae Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2210938 Commit-Queue: Moe Ahmadi <mahmadi@chromium.org> Reviewed-by:Esmael Elmoslimany <aee@chromium.org> Cr-Commit-Position: refs/heads/master@{#770899}
Showing
Please register or sign in to comment