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

♿ [#2435] Add aria-expanded to mobile anchors navigation #1273

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

jiromaykin
Copy link
Contributor

@jiromaykin jiromaykin commented Jun 24, 2024

issue https://taiga.maykinmedia.nl/project/open-inwoner/task/2435

note:

  • aria-expanded only works for the elements that indicate if a control is expanded or collapsed.
  • aria-controls is not a hard requirement, but 'recommended'

@codecov-commenter
Copy link

codecov-commenter commented Jun 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.18%. Comparing base (2149012) to head (b9fc781).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1273   +/-   ##
========================================
  Coverage    95.18%   95.18%           
========================================
  Files          980      980           
  Lines        35687    35687           
========================================
  Hits         33969    33969           
  Misses        1718     1718           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jiromaykin jiromaykin changed the title [#2545] Add aria-expanded to mobile anchors navigation ♿ [#2545] Add aria-expanded to mobile anchors navigation Jun 24, 2024
@jiromaykin jiromaykin added the Accessibility Improving accessibility label Jun 24, 2024
@jiromaykin jiromaykin force-pushed the issue/2435-A11y-anchors-nav-aria-expanded branch from ca054a5 to 0c3cd06 Compare June 24, 2024 13:47
@jiromaykin jiromaykin changed the title ♿ [#2545] Add aria-expanded to mobile anchors navigation ♿ [#2435] Add aria-expanded to mobile anchors navigation Jun 24, 2024
@jiromaykin jiromaykin force-pushed the issue/2435-A11y-anchors-nav-aria-expanded branch from 012381f to b9fc781 Compare June 24, 2024 14:10
@jiromaykin jiromaykin marked this pull request as ready for review June 25, 2024 07:51
@jiromaykin jiromaykin requested a review from pi-sigma June 25, 2024 07:51
{% button href="#" icon="expand_more" icon_position="after" extra_classes="anchor-menu--mobile__title anchor-menu__toggle" bordered=False text=_("Op deze pagina") %}
<ul class="anchor-menu__list">
{% button icon="expand_more" icon_position="after" extra_classes="anchor-menu--mobile__title anchor-menu__toggle" bordered=False text=_("Op deze pagina") ariaExpanded="false" ariaControls="anchor-menu-list-mobile" %}
<ul class="anchor-menu__list" id="anchor-menu-list-mobile">
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see where the id is used. Is this necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. That ID is needed for the WAI_ARIA attribute "aria-controls".
Read more here: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls

@pi-sigma pi-sigma self-requested a review June 27, 2024 09:14
@alextreme alextreme merged commit 318aed7 into develop Jul 1, 2024
16 checks passed
@alextreme alextreme deleted the issue/2435-A11y-anchors-nav-aria-expanded branch July 1, 2024 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accessibility Improving accessibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants