-
Notifications
You must be signed in to change notification settings - Fork 30
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
fix(a11y): user select menu labels #6602
fix(a11y): user select menu labels #6602
Conversation
34f6999
to
d2934d3
Compare
@@ -37,15 +37,15 @@ describe('components > shared > MainContent', function () { | |||
|
|||
it('should show "ALL PROJECTS" as the selected project', function () { | |||
render(<DefaultStory />) | |||
const projectSelect = screen.getByRole('textbox', { name: 'project-select' }) | |||
const projectSelect = screen.getByRole('textbox', { name: 'Select project, ALL PROJECTS' }) |
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.
Grommet appends the selected value to the name of the textbox. I'm not sure why, since it will also be read out as the textbox value. 🤷♂️
d2934d3
to
ec6b2ea
Compare
ec6b2ea
to
3899801
Compare
ae468c7
to
a335298
Compare
a335298
to
3e18257
Compare
- fix 'Selected: [object Object]' in the labels for user dropdown menus. - add plain English labels for the project and date range menus.
5215d8a
to
2f290ed
Compare
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.
Confirmed locally with VoiceOver, changes look good to me, thank you @eatyourgreens ! 🚀
Please request review from
@zooniverse/frontend
team or an individual member of that team.Package
Linked Issue and/or Talk Post
How to Review
The dropdown menus on the user stats page should have accessible names now, including the selected option.
The group stats visibility menu should also have a plain English name, reflecting the selected option, in the tests and in the storybook.
Checklist
PR Creator - Please cater the checklist to fit the review needed for your code changes.
PR Reviewer - Use the checklist during your review. Each point should be checkmarked or discussed before PR approval.
General
yarn panic && yarn bootstrap
ordocker-compose up --build
and FEM works as expectedGeneral UX
Example Staging Project: i-fancy-cats
Bug Fix