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-8136 accordion accessibility #570

Merged
merged 2 commits into from
Mar 3, 2023
Merged

Conversation

rpnykanen
Copy link
Contributor

@rpnykanen rpnykanen commented Mar 1, 2023

UHF-8136

What was done

  • Changes based on accessibility report
  • Fixed bug causing error when loading a page with non existing anchor link

How to install

  • 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-8136_accordion_accessibility
  • Run make drush-cr

How to test

  • Go to a page with accordion

    • Add gibberish as anchor link (#qwerty) and reload the page
    • Check inspector for javascript errors. No errors should emerge from accordion library.
  • Test accessibility:

    • Hidden span (with "toggle accordion" -text for screen readers) should br removed from accordion item header
    • Aria-labelled-by removed from toggle button
    • Aria-expanded removed from close button
    • Close button's "keypress" or "mouseup" event should transfer the focus back to the accordion item's toggle button
  • Check that this feature works

  • Check that code follows our standards

Designers review

  • This PR does not need designers review
  • This PR has been visually reviewed by a designer (Name of the designer)

Other PRs

  • Link to other PR

@juho-lehmonen juho-lehmonen self-requested a review March 2, 2023 08:05
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.

2 participants