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

Set Expression widget's accessible field to true. #1001

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

nishasy
Copy link
Contributor

@nishasy nishasy commented Feb 15, 2024

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 the
checkbox 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

Screenshot 2024-02-14 at 5 29 03 PM

todo

Issue: none

Test plan:
todo
@nishasy nishasy self-assigned this Feb 15, 2024
Copy link
Contributor

github-actions bot commented Feb 15, 2024

Size Change: +8 B (0%)

Total Size: 815 kB

Filename Size Change
packages/perseus/dist/es/index.js 390 kB +8 B (0%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 38.1 kB
packages/kmath/dist/es/index.js 4.27 kB
packages/math-input/dist/es/index.js 79.7 kB
packages/perseus-core/dist/es/index.js 908 B
packages/perseus-editor/dist/es/index.js 263 kB
packages/perseus-error/dist/es/index.js 878 B
packages/perseus-linter/dist/es/index.js 21.8 kB
packages/pure-markdown/dist/es/index.js 3.77 kB
packages/simple-markdown/dist/es/index.js 12.4 kB

compressed-size-action

Copy link

codecov bot commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e991bf9) 63.70% compared to head (46d44e3) 65.18%.

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     

Impacted file tree graph

Files Coverage Δ
packages/perseus/src/widgets/expression.tsx 81.21% <100.00%> (+0.02%) ⬆️

... and 73 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e991bf9...46d44e3. Read the comment docs.

@nishasy nishasy marked this pull request as ready for review February 15, 2024 01:37
@khan-actions-bot
Copy link
Contributor

Gerald

Required Reviewers
  • @Khan/perseus for changes to .changeset/popular-laws-knock.md, packages/perseus/src/widgets/expression.tsx

Don't want to be involved in this pull request? Comment #removeme and we won't notify you of further changes.

@khan-actions-bot khan-actions-bot requested a review from a team February 15, 2024 01:37
@nedredmond
Copy link
Contributor

This is great for new exercises, but I do not believe this will fix the issue retroactively without the backfill.

@nishasy
Copy link
Contributor Author

nishasy commented Feb 15, 2024

@nedredmond Yes, that's correct! I'll update the description to clarify this.

Copy link
Contributor

npm Snapshot: Published

Good news!! We've packaged up the latest commit from this PR (46d44e3) and published it to npm. You
can install it using the tag PR1001.

Example:

yarn add @khanacademy/perseus@PR1001

@nishasy nishasy merged commit f30c663 into main Feb 15, 2024
64 checks passed
@nishasy nishasy deleted the mark-expression-as-accessible branch February 15, 2024 19:22
nishasy added a commit that referenced this pull request Feb 15, 2024
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,
Copy link
Collaborator

Choose a reason for hiding this comment

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

😮 Today I learned!!!

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.

4 participants