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

[Issue #1886]: Fix duplicate id bug in SearchFilterAccordion #1924

Merged
merged 2 commits into from
May 6, 2024

Conversation

rylew1
Copy link
Contributor

@rylew1 rylew1 commented May 5, 2024

Summary

Fixes #1886

Time to review: 1 min

Changes proposed

  • add the query param key to the end of the accordion id

Context for reviewers

  • We had duplicate id's for each accordion div - so just append the specific query param key that we use to the id

  • the remaining Lighthouse a11y issue is due to the <span>...</span> that's in the component (only <li> tags are allowed inside <ul>) . But this is the USWDS implementation so I'm not sure if we can get around that bug?

Additional information

Lighthouse doesn't have this error anymore:

image

image

Copy link

github-actions bot commented May 5, 2024

Coverage report for ./frontend

St.
Category Percentage Covered / Total
🟢 Statements 83.89% 854/1018
🟡 Branches 64.9% 220/339
🟡 Functions 75.34% 165/219
🟢 Lines 83.89% 797/950

Test suite run success

166 tests passing in 55 suites.

Report generated by 🧪jest coverage report action from 06bacc0

Copy link
Collaborator

@acouch acouch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks.

@rylew1 rylew1 merged commit 17bb7fb into main May 6, 2024
10 checks passed
@rylew1 rylew1 deleted the rylew/1886-duplicate-id-bug branch May 6, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task]: Bug: Duplicate IDs in Search Page
2 participants