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

Leadership page a11y fixed (Fixes #15335) #15460

Merged
merged 3 commits into from
Nov 18, 2024

Conversation

alexgibson
Copy link
Member

@alexgibson alexgibson commented Nov 7, 2024

One-line summary

  • Fixes some minor a11y issues on the /leadership page.
  • Also removed the sub navigation from this page since it's empty and serves no purpose.

Note I filed a separate issue in Protocol for the incorrect aria role on the side menu: mozilla/protocol#999

Issue / Bugzilla link

#15335

Testing

http://localhost:8000/en-US/about/leadership/

@alexgibson alexgibson added P3 Third level priority - Nice to have Needs Review Awaiting code review Review: XS Code review time: up to 30min labels Nov 7, 2024
@stephaniehobson
Copy link
Contributor

How do we get the wagtail database to test this locally?

@alexgibson
Copy link
Member Author

@stephaniehobson https://bedrock.readthedocs.io/en/latest/cms.html#fetching-the-latest-cms-data-for-local-work

You should only need the dev DB to test the PR I think (only the prod db has the full leadership data).

@alexgibson alexgibson force-pushed the leadership-a11y branch 2 times, most recently from de74468 to 1bc0388 Compare November 15, 2024 14:54
Copy link
Contributor

@stephaniehobson stephaniehobson left a comment

Choose a reason for hiding this comment

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

Errors listed in #15335 to be fixed:

  • Elements must only use supported ARIA attribute
  • ARIA attributes must conform to valid names
  • Heading levels should only increase by one
    • The sidemenu changes are an improvement 👍
    • There is still a problem with the heading levels (even though the test will now pass)
  • Page should contain a level-one heading

Currently the heading levels for this page make a tree like:

2 Mozilla Corporation
2 Executive Steering Committee
2 Senior Leadership
2 Mozilla Foundation
2 Boards of Directors
2 Mozilla Corporation
2 Mozilla Foundation
2 Former Board Members

I think the correct hierarchy would be:

2 Mozilla Corporation
  3 Executive Steering Committee
  3 Senior Leadership
2 Mozilla Foundation
2 Boards of Directors
  3 Mozilla Corporation
  3 Mozilla Foundation
  3 Former Board Members

Note that the heading level of all the bios will need to be adjusted too.


Assuming the sidebar error will be fixed in a separate PR this can merge after some more heading level tweaks.

Thanks for tackling the boring but necessary code changes for better a11y 🙂

@stephaniehobson stephaniehobson self-assigned this Nov 15, 2024
@stephaniehobson stephaniehobson added Frontend HTML, CSS, JS... client side stuff and removed Needs Review Awaiting code review labels Nov 15, 2024
@alexgibson
Copy link
Member Author

@stephaniehobson the side menu has been split out into its own component test in #15462, and needs to be fixed upstream in protocol.

Good catch on the heading levels - will update those here 👍

@alexgibson
Copy link
Member Author

@stephaniehobson updated, thanks again

Copy link
Contributor

@stephaniehobson stephaniehobson left a comment

Choose a reason for hiding this comment

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

R+ 🗣️

@stephaniehobson stephaniehobson merged commit 618d5c2 into mozilla:main Nov 18, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frontend HTML, CSS, JS... client side stuff P3 Third level priority - Nice to have Review: XS Code review time: up to 30min
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants