Skip to content
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

Merged
merged 9 commits into from
Dec 20, 2024

Conversation

avertrees
Copy link
Collaborator

Ticket:

This PR does the following:

Open Questions

How has this been tested? How should a reviewer test this?

Accessibility concerns or updates

Checklist:

  • I have added relevant accessibility documentation for this pull request.
  • All new and existing tests passed.
  • I have updated the CHANGELOG.md.

Copy link

vercel bot commented Dec 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
digital-collections ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 20, 2024 5:34pm

Copy link
Collaborator

@7emansell 7emansell left a 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"
Copy link
Collaborator

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

Copy link
Member

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.

Copy link
Member

@EdwinGuzman EdwinGuzman left a 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.

@avertrees
Copy link
Collaborator Author

avertrees commented Dec 20, 2024

@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

@avertrees avertrees merged commit 440f2a7 into main Dec 20, 2024
4 checks passed
@avertrees avertrees deleted the feature/DR-3323/fix-copy-sort-menu branch December 20, 2024 19:51
7emansell pushed a commit that referenced this pull request Dec 20, 2024
update label text on sort menu for all collections page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants