-
Notifications
You must be signed in to change notification settings - Fork 350
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
[SR] Linear System - add screen reader support for Linear System interactive graph #2030
base: main
Are you sure you want to change the base?
Conversation
The [SRUX doc](https://khanacademy.atlassian.net/wiki/spaces/LC/pages/3460366348/Linear) still needs a label for the grab handle, but I tried my best in the meantime. - Add a label and describedby for the grab handle. - Add aria-live states for the different interactive elements so they don't override each other. Issue: https://khanacademy.atlassian.net/browse/LEMS-1726 Test plan: `yarn jest packages/perseus/src/widgets/interactive-graphs/graphs/linear.test.tsx` Storybook - http://localhost:6006/iframe.html?id=perseuseditor-widgets-interactive-graph--interactive-graph-linear&viewMode=story - Try all the different slopes and intercepts - Move different elements and confirm that the updated aria-label is what is read out, and none of the other elements override the currently focused one.
…inear System interactive graph
npm Snapshot: PublishedGood news!! We've packaged up the latest commit from this PR (193ee2a) and published it to npm. You Example: yarn add @khanacademy/perseus@PR2030 If you are working in Khan Academy's webapp, you can run: ./dev/tools/bump_perseus_version.sh -t PR2030 |
Size Change: +484 B (+0.04%) Total Size: 1.27 MB
ℹ️ View Unchanged
|
The parent pull-request (#2025) has been merged into |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The experience is working for the individual points and lines, but I think we need to circle back and make sure it's working at the all up graph level.
return ( | ||
<> | ||
<g | ||
aria-label={strings.srLinearSystemGraph} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This aria-label is not getting read out when navigating to the whole graph. This is because the whole graph descriptions needs to happen at the mafs-graph.tsx level.
Summary:
Add the aria label and descriptions for the full graph and the
interactive elements in the Linear System graph, based on the
SRUX doc.
Issue: https://khanacademy.atlassian.net/browse/LEMS-1727
Test plan:
yarn jest packages/perseus/src/widgets/interactive-graphs/graphs/linear-system.test.tsx
Storybook
View Storybook publish in the checks below to try it yourself.
Screen.Recording.2024-12-18.at.2.04.53.PM.mov