-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ntp][cr-elements] Give Panorama shortcut buttons accessible names
UI screenshot: screenshot/3c33cebpM7XihUw.png Accessibility tree screenshot: screenshot/78egjf3SGauAQoV.png Problem: We don’t define labels for our `cr-radio-button`s. This causes `aria-labelledby` [1] for our `cr-radio-button`s to be an empty string [2]. Caveat: We cannot use `cr-radio-button`'s `label` attribute as is because the styling is different than what we need. The default cr-radio-button is left aligned and only has one label. Our buttons are right aligned and have two labels. Proposed Solution: Create attribute that hides `cr-radio-button`s label text when added. *Other alternatives were discussed and vetted i.e. moving our custom button label into `cr-radio-button.` This solution was chosen because it allows us to preserve our existing shortcuts UI and create a custom aria-label which consists of both labels (follow up CL). [1] https://source.chromium.org/chromium/chromium/src/+/main:ui/webui/resources/cr_elements/cr_radio_button/cr_radio_button.html;drc=730ff74c221e59ccdf7b116ae924d9d1b150341e;l=6 [2] https://source.chromium.org/chromium/chromium/src/+/main:ui/webui/resources/cr_elements/cr_radio_button/cr_radio_button_mixin.ts;drc=ab67842ff06675153972984b5c7b7dcd7f6df395;l=53. Change-Id: I525ef69eb9bf26a65e026d0219debe1ae654beab Bug: 1416276 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4264930 Reviewed-by: John Lee <johntlee@chromium.org> Commit-Queue: Paul Adedeji <pauladedeji@google.com> Cr-Commit-Position: refs/heads/main@{#1107079}
- Loading branch information
Paul Adedeji
authored and
Chromium LUCI CQ
committed
Feb 18, 2023
1 parent
401ade9
commit 91b2e66
Showing
5 changed files
with
77 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters