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

Fixing multiple accessibility issues #1262

Conversation

ahmad-shahid
Copy link
Contributor

No description provided.

@plup2 plup2 merged commit 8ac04d8 into master Oct 7, 2024
6 checks passed
@plup2 plup2 deleted the 1256-aria-reference-exists-but-the-target-for-the-reference-does-not-exist branch October 7, 2024 17:28
@@ -210,7 +210,7 @@ if (pr.subTheme === 'eccc') {
</div>
<%_ if (pr.siteMenu != false) { -%>
<%_ if (pr.subTheme == 'esdc' || pr.subTheme == 'labour') { -%>
<nav role="navigation" id="wb-sm" data-wb-ajax='{"url": "<%- (pr.menuPath != null)? pr.menuPath: '/app/cls/WET/global/<^- msg('esdcmenu-eng.html') ^>' %>", "type": "replace", "nocache": true }' data-trgt="mb-pnl" class="wb-menu visible-md visible-lg" typeof="SiteNavigationElement" aria-labelledby="cdts-topicsMenu">
<nav role="navigation" id="wb-sm" data-wb-ajax='{"url": "<%- (pr.menuPath != null)? pr.menuPath: '/app/cls/WET/global/<^- msg('esdcmenu-eng.html') ^>' %>", "type": "replace", "nocache": true }' data-trgt="mb-pnl" class="wb-menu visible-md visible-lg" typeof="SiteNavigationElement" aria-label="cdts-topicsMenu">
Copy link
Member

Choose a reason for hiding this comment

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

These changes are incorrect. https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label
aria-label is for a sting used by the label, and aria-labelledby is used to point to an ID of something that contains the label, like in both cases in this file that were changed

Copy link
Contributor

Choose a reason for hiding this comment

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

@ahmad-shahid That's right! Was so focused on the CSS change we had discussed that I missed that :) This should now be text (incl. translation to french)

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.

Aria reference exists, but the target for the reference does not exist
3 participants