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

Fix - Refactor PNI sort dropdown for HTML validation errors and accessibility #11870

Merged
merged 8 commits into from
Mar 1, 2024

Conversation

Morsey187
Copy link
Contributor

@Morsey187 Morsey187 commented Feb 15, 2024

Description

Link to sample test page: https://foundation.mozilla.org/en/privacynotincluded/
Related PRs/issues: #11607

Decided against “progressively enhanced by starting with a form, select, options and a submit button.” as mentioned in the linked issue, as this would require more time refactoring (lots of existing code tied to searchFilter etc.), instead I’ve reused existing styling but altered the element types and added aria labels.

  • Minor changes in styling to support refactoring the DOM for accessibility.
  • Similar to PNI Category nav not accessible and invalid #11606 I focused on updating the existing code instead of refactoring to avoid investing too much time on the issue, although happy to make any changes and alterations.

Testing instructions

  • Visit /privacynotincluded page
  • Run page through a html validatior
  • Test the components general functionaility along with using a screenreader.
  • Compare styling changes https://foundation.mozilla.org/en/privacynotincluded/
    • Theres an extra border splitting the button and dropdown menu now
screenshots

2024-02-14 16 12 34

Checklist

Tests

  • Is the code I'm adding covered by tests?

Changes in Models:

  • Did I update or add new fake data?
  • Did I squash my migration?
  • Are my changes backward-compatible. If not, did I schedule a deploy with the rest of the team?

Documentation:

  • Is my code documented?
  • Did I update the READMEs or wagtail documentation?

Merge Method
💡❗Remember to use squash merge when merging non-feature branches into main

┆Issue is synchronized with this Jira Story

@jhonatan-lopes
Copy link
Contributor

jhonatan-lopes commented Feb 26, 2024

@mmmavis this one is still failing linting here but my local copy doesn't show anything out of the ordinary. Could you please try it locally on your side?

@mmmavis
Copy link
Collaborator

mmmavis commented Feb 29, 2024

@jhonatan-lopes There were some indentation issues and running inv format-html fixed them for me. I have committed the changes.

@jhonatan-lopes
Copy link
Contributor

Thanks @mmmavis

@mmmavis
Copy link
Collaborator

mmmavis commented Feb 29, 2024

Hey @jhonatan-lopes , Ben's PR looks good! I did push some changes to 1) remove an extra class 2) tidy up implementation for a method to hopefully improve code readability. Could you give my commit a review?

Copy link
Contributor

@jhonatan-lopes jhonatan-lopes left a comment

Choose a reason for hiding this comment

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

LGTM 👍 thanks @mmmavis and @Morsey187

@mmmavis mmmavis merged commit e8b6ec2 into main Mar 1, 2024
6 checks passed
@mmmavis mmmavis deleted the fix/11607-refactor-PNI-sort-dropdown branch March 1, 2024 18:50
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.

3 participants