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 invalid role on /leadership modal links (fixes #15538) #15539

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexgibson
Copy link
Member

@alexgibson alexgibson commented Nov 21, 2024

One-line summary

  • Change <article> landmark to a regular <div> since role is applied.
  • Start using aria-controls and aria-expanded.
  • Also fixes a heading level issue.

Issue / Bugzilla link

#15538

Testing

I tested this with prod CMS data: https://bedrock.readthedocs.io/en/latest/cms.html#fetching-the-latest-cms-data-for-local-work

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

Running a11y tests should not generate a report for the leadership page after this fix:

  • npm start
  • cd tests/playwright
  • npm run a11y-tests

I also tested this with VoiceOver on macOS to make sure things seemed to make sense.

@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 21, 2024
@alexgibson alexgibson requested a review from a team as a code owner November 21, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review Awaiting code review 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.

1 participant