Address a11y bugs in side panel/resource navigation in lessons and quizzes #13145
Labels
APP: Coach
Re: Coach App (lessons, quizzes, groups, reports, etc.)
DEV: frontend
P0 - critical
Priority: Release blocker or regression
TAG: a11y
Affecting accessibility
TAG: user strings
Application text that gets translated
Milestone
Originally posted by @radinamatic in #13060 (comment)
Sidebars MUST behave as full page modals (in mobile views they really are) and trap the focus within the sidebar until the user closes it.✔Enter
to open and navigate within, the focus in the next step (view) should be placed on top of the sidebar (maybe theSearch
button), and not at the bottom (theSave & finish
button).https://github.com/user-attachments/assets/f430fc29-220b-4733-a92e-bc721dcb4246
Now for the issues that do need to be fixed for this feature to be considered accessible:
Top left back button (left arrow icon)
missingnow has a label but it should be changed toGo back
instead of justBack
.Select all
checkbox is missing the visual focus outline when the state is half/partially checked.https://github.com/user-attachments/assets/8032b5e8-41e8-4cb7-82a9-f68d4ec7e223
Outline to indicate that the
Select all
checkbox is in focus appears correctly for both the unchecked and fully checked states, and is missing ONLY if the state is partially checked. So to replicate it you will need to activate the checkbox for at least one of the resources and navigate back to theSelect all
checkbox. It is functional, and correctly announced by the screen reader, it just misses the outline (which is a barrier for sighted users who navigate by keyboard, if not for those who use the screen reader 🙂)When one or more resources are selected, the link that appears at the bottom of the sidebar (
N resources selected (...KB)
) must be fully announced through thearia-live="polite"
region, including the size of the resources (as of now it only state the number of selected resources).Bookmark button still needs some a11y TLC:when the resource is NOT bookmarked, button should have the label✔Save to bookmarks
, instead of theSaved from bookmarks
(string I'm not sure what does it even mean)when user clicks the button to bookmark the resource, that change of state is displayed visually by different icon, but those who cannot see are missing the action. We need to add the message/string✔Saved to bookmarks
(can be visually hidden) that must also be announced through thearia-live="polite"
regionwhen the user has bookmarked the resource, the label for the button must change to✔Remove from bookmarks
if/when the user decides to un-bookmark it, that change of state must also be announced by passing the✔Removed from bookmarks
message through thearia-live="polite"
region, alongside the icon change (string should probably need to be added tocommonCoreStrings
)Maybe changing the✔Saved from bookmarks
string that is not being used anywhere (and I have had it hidden on Crowdin for the last 2 releases) intoSaved to bookmarks
would help with this last point 🙂The text was updated successfully, but these errors were encountered: