-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#12081] User-friendliness: Fix custom visibility options #12209
[#12081] User-friendliness: Fix custom visibility options #12209
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! Could you fix the lint issues please?
Fixed the E2E test issue! Thanks @zhaojj2209 for helping to debug (: Quick summary of the issue: appears for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the changes!
Part of #12081
Sub-issue: Fix custom visibility options
Outline of Solution
Added
aria-label
s to the table and checkboxes, and changed the dropdown divider toaria-hidden
. Also changed the dropdown items to be buttons, which fixed the screen reader issue.The
getCheckboxAriaLabel
function looks rather inelegant to me. I'm considering moving most of the logic to 2Map
variables outside of the function... would that be better?Edit: Thought about it and I think this improves understanding of the code, so I've made the change