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

UHF-8590: Search accessibility fix #711

Merged
merged 25 commits into from
Aug 18, 2023

Conversation

xkhaven
Copy link
Contributor

@xkhaven xkhaven commented Jul 12, 2023

UHF-8590

What was done

  • Fixed "Clear all selections" label to field precise
  • Fixed Job Search Type of employment relationship field's label for attribute to point proper input
  • Fixed focus to the results title area on "No results" case on those forms which had focus to results count functionality
  • Fixed "Clear all" button's aria-hidden attribute
  • Fixed margin on filter pills buttons

How to install

  • Read carefully the test instructions for all instances listed below and do the following install on each
  • Make sure your instance is up and running on latest dev branch.
    • git pull origin dev
    • make fresh
  • Update the HDBT theme
    • composer require drupal/hdbt:dev-UHF-8590_Search_accessibility_fix
  • Run make drush-cr

How to test

Test steps for all instances unless exceptions mentioned separately

  • Clearing all field values button has screen reader label describing the field's label instead of common "Clear all" text
  • Clicking label focuses on proper input field
  • When clicking search submit button, the focus is set to search results count
  • When "Clear all selections" button is visible it has attribute aria-hidden set to false and when not visible, vice versa
  • Filter clear buttons has no margin on the icon (X)
  • Check that code follows our standards

Instances with affected forms to test

Designers review

  • This PR does not need designers review

Copy link
Contributor

@Jussiles Jussiles left a comment

Choose a reason for hiding this comment

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

Mostly works nicely 👍

I added one question about using !important

I found some things that aren't working as intended yet:

  • Event search focus to search results is not working
  • School and news search "Clear selections" buttons have wrong area-hidden values:
Screenshot 2023-08-10 at 13 43 17 Screenshot 2023-08-10 at 13 22 29

@jeremysteerio jeremysteerio force-pushed the UHF-8590_Search_accessibility_fix branch from e6d3f6c to 3030e33 Compare August 16, 2023 09:38
@jeremysteerio jeremysteerio force-pushed the UHF-8590_Search_accessibility_fix branch 2 times, most recently from f19282a to 93ae289 Compare August 16, 2023 11:05
@jeremysteerio jeremysteerio force-pushed the UHF-8590_Search_accessibility_fix branch from 03281e6 to 2ff0b98 Compare August 16, 2023 12:31
Copy link
Contributor

@Jussiles Jussiles left a comment

Choose a reason for hiding this comment

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

It's good now! Event search fix will done in other PR.

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