-
Notifications
You must be signed in to change notification settings - Fork 0
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
update label text on sort menu for all collections page #263
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
only the 1 nit
@@ -159,11 +160,12 @@ export function CollectionsPage({ data, params, renderCollections }) { | |||
onChange: (e) => handleSearchChange(e), | |||
}} | |||
onSubmit={handleSearchSubmit} | |||
labelText={""} | |||
labelText="Search Collections by title" | |||
aria-label="Search Collections by title" |
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.
major nit but should collections be capitalized
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.
Hmm good point. I don't think you need the aria-label, the labelText
should cover that.
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.
Looks good but can you verify that the aria-label is not needed? The labelText should add the value in the form element which is enough.
@EdwinGuzman the aria-label was added for the a11y test and it did not fix the issue. I can remove it for now or update "Collections" to be lowercase but the DS docs do say that the labelText should be enough to populate the aria label. I made another ticket for the a11y tests: DR-3342 FE | Write a11y tests for all phase 2 pages |
update label text on sort menu for all collections page
Ticket:
This PR does the following:
Open Questions
How has this been tested? How should a reviewer test this?
Accessibility concerns or updates
Checklist: