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

AP1540 Accessibility fix for Savings and Investments and other assets page #1662

Merged
merged 2 commits into from Aug 14, 2020

Conversation

Obsiye
Copy link
Contributor

@Obsiye Obsiye commented Aug 12, 2020

AP1540 Accessibility fix for Savings and Investments and other assets page

Link to story

  • Add the aria-describedby id to the select_all_that_apply field as it broke WAVE testing of aria tags for other assets page and savings and investments page

  • Turn all elements with the html class 'select-all-that-apply-hint' to a span tag with class govuk-hint in order to standardise it with gds design system here

  • Fix the problem where error messages are being bunched underneath the select_all_that_apply heading when checkboxes are selected but they have no nested values. Do this by not duplicating those errors under the heading. However, allow for when no checkboxes are selected error which is just a one line message.

  • Test the above

Checklist

Before you ask people to review this PR:

  • Tests and rubocop should be passing: bundle exec rake
  • Github should not be reporting conflicts; you should have recently run git rebase master.
  • There should be no unnecessary whitespace changes. These make diffs harder to read and conflicts more likely.
  • The PR description should say what you changed and why, with a link to the JIRA story.
  • You should have looked at the diff against master and ensured that nothing unexpected is included in your changes.
  • You should have checked that the commit messages say why the change was made.

@Obsiye Obsiye force-pushed the ap-1540-accessibility-savings-investments branch 2 times, most recently from 5d46641 to a2e9a0f Compare August 12, 2020 15:37
@Obsiye Obsiye changed the title AP1540 Accessibility fix for Savings and Investments page AP1540 Accessibility fix for Savings and Investments and other assets page Aug 12, 2020
@Obsiye Obsiye force-pushed the ap-1540-accessibility-savings-investments branch from a2e9a0f to 40d1166 Compare August 12, 2020 15:44
@Obsiye Obsiye added the ready for review Please review label Aug 12, 2020
@willc-work willc-work added approved Approved by code reviewers Ready to merge Has passed UAT testing and can be merged into master and removed ready for review Please review labels Aug 13, 2020
Add the aria-describedby id to the select_all_that_apply field as it broke WAVE testing of aria tags for the savings and investments page and other assets page.

Fix duplication of error messages under the select_all_that_apply hint because it's already in the error summary above the title. This is only when checkboxes are checked and nested values cause an error on submission. It still shows an error underneath it for when no checkboxes were selected validation fails

Test the above. However, keep an eye on rspec/rspec-expectations#1168
which is an rspec matcher coming soon that allows to test how many times something has been seen in a response body.
Standardise select-all-that-apply-hint to be a hint and not a heading tag
@Obsiye Obsiye force-pushed the ap-1540-accessibility-savings-investments branch from d7239e1 to 5d6fd44 Compare August 14, 2020 10:02
@Obsiye Obsiye merged commit ef0b269 into master Aug 14, 2020
@Obsiye Obsiye deleted the ap-1540-accessibility-savings-investments branch August 14, 2020 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Approved by code reviewers Ready to merge Has passed UAT testing and can be merged into master
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants