-
Notifications
You must be signed in to change notification settings - Fork 352
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
Set Expression widget's accessible
field to true.
#1001
Conversation
todo Issue: none Test plan: todo
Size Change: +8 B (0%) Total Size: 815 kB
ℹ️ View Unchanged
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1001 +/- ##
==========================================
+ Coverage 63.70% 65.18% +1.47%
==========================================
Files 425 427 +2
Lines 96439 96457 +18
Branches 6298 8682 +2384
==========================================
+ Hits 61441 62877 +1436
+ Misses 34998 33580 -1418
... and 73 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
GeraldRequired Reviewers
Don't want to be involved in this pull request? Comment |
This is great for new exercises, but I do not believe this will fix the issue retroactively without the backfill. |
@nedredmond Yes, that's correct! I'll update the description to clarify this. |
npm Snapshot: PublishedGood news!! We've packaged up the latest commit from this PR (46d44e3) and published it to npm. You Example: yarn add @khanacademy/perseus@PR1001 |
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @khanacademy/perseus@19.2.1 ### Patch Changes - [#1001](#1001) [`f30c6639`](f30c663) Thanks [@nishasy](https://github.com/nishasy)! - Expression widget is marked as `accessible` internally. This will stop disabling the "requires screen or mouse" checkbox in the exercise editor for exercises that use expression widget. ## @khanacademy/perseus-editor@4.2.1 ### Patch Changes - Updated dependencies \[[`f30c6639`](f30c663)]: - @khanacademy/perseus@19.2.1
@@ -687,6 +687,7 @@ ExpressionWithDependencies.getOneCorrectAnswerFromRubric = | |||
export default { | |||
name: "expression", | |||
displayName: "Expression / Equation", | |||
accessible: true, |
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.
😮 Today I learned!!!
Summary:
Now that expression widget is screenreader accessible, we want to mark it as such.
This will make it so that the exercise editor will not auto-check and auto-disable the
"requires screen or mouse" checkbox when the expression widget is used.
This will change the value of
hasViolatingWidgets
in item-controls.tsx where thecheckbox is rendered.
NOTE: This will just make it so that the checkbox won't auto-disable. It will not
update the existing values to reflect Expression now being accessible. A backfill
will still be necessary for that with our current architecture.
Issue: none
Test plan:
N/A?
Checkbox in question