-
Notifications
You must be signed in to change notification settings - Fork 437
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
[Deque Analysis] Admin/Action Sidebar's "serious" accessibility issues #1185
Comments
This is trickier than the stackoverflow post because in our case the elements are dynamically loaded. We can't just change their tag to The solution will also affect the public menu as they share the same components, so I'd remove this section from #1174 to prevent conflicts.
We'll turn the expandable menu sections in to buttons and give them an aria-expanded attribute
While we no longer show have disabled menu options currently, the component still exists. It's easy enough to add
We'll either not render invisible parts of the menu or hide them with display none. This will require us to know whether or not the they are visible inside the menu option component rather than only in the parent as is currently the case. Fixing these issues will take an estimated 12 hours |
@tdonohue That seems to be a more straightforward case where there's simply a |
Deque Analysis Summary
Our Admin/Action Sidebar as a total of 20 serious accessibility issues (not including color contrast which are handled in other tickets).
<ul>
and<ol>
must only directly contain<li>
,<script>
or<template>
elements" and "<li>
elements must be contained in a<ul>
or<ol>
" (Occurs on entire Admin sidebar menu, as it's made up of<ul>
and<li>
elements)<ul>
elements tend to contain a custom Angular template (e.g.ds-expandable-admin-sidebar-section
) which then contains the<li>
. We may need to find a way to stop Angular from printing out the template tag, if that's possible. Some possible hints https://stackoverflow.com/q/38716105/3750035<a>
), but Deque recommends using thearia-expanded
attribute (set to true/false) on a toggle element (like a<button>
). See https://www.w3.org/TR/wai-aria-1.1/#aria-expandedFull list of issues is viewable at (requires login): https://axeauditor.dequecloud.com/test-run/0856438a-a19a-11eb-bc31-b7d5be387c86/issues?activeTab=dt-issue&page=0&pageSize=50&sortField=ordinal&sortDir=asc&filter%5Bseverity%5D=3&filter%5Btype%5D=issue&filter%5Bpage_number%5D=9&row=9
The text was updated successfully, but these errors were encountered: