Skip to content

[Accessibility] Add accessibility checker in editor #2219

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

Draft
wants to merge 42 commits into
base: main
Choose a base branch
from

Conversation

mark-fitzgerald
Copy link
Contributor

Summary:

Test plan:

Add event listener for updates to the preview panel so that axe-core can re-test the updates.
…cons consistent (used to be two different sizes).

Make widget editor panel transition when toggled.
Adjust axe-core settings when in Storybook so that it scans the correct preview element.
Add status icon to accessibility panel.
Add issues panels for violations and inconsistencies.
Add "Show Me" toggle to highlight the offending element.
@mark-fitzgerald mark-fitzgerald self-assigned this Feb 7, 2025
Copy link
Contributor

github-actions bot commented Feb 7, 2025

Size Change: +2.53 kB (+0.6%)

Total Size: 427 kB

Filename Size Change
packages/perseus-editor/dist/es/index.js 93.1 kB +2.53 kB (+2.8%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 20.7 kB
packages/keypad-context/dist/es/index.js 1 kB
packages/kmath/dist/es/index.js 5.98 kB
packages/math-input/dist/es/index.js 57.1 kB
packages/math-input/dist/es/strings.js 1.61 kB
packages/perseus-core/dist/es/index.js 18.3 kB
packages/perseus-linter/dist/es/index.js 7.05 kB
packages/perseus-score/dist/es/index.js 8.9 kB
packages/perseus-utils/dist/es/index.js 403 B
packages/perseus/dist/es/index.js 199 kB
packages/perseus/dist/es/strings.js 6.13 kB
packages/pure-markdown/dist/es/index.js 1.22 kB
packages/simple-markdown/dist/es/index.js 6.71 kB

compressed-size-action

Copy link
Contributor

github-actions bot commented Feb 7, 2025

npm Snapshot: Published

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

Example:

pnpm add @khanacademy/perseus@PR2219

If you are working in Khan Academy's webapp, you can run:

./dev/tools/bump_perseus_version.sh -t PR2219

tatianasnook added a commit that referenced this pull request Jun 16, 2025
…seus Editor (#2583)

## Summary:
Replace custom icons with WB components for consistent styling in Perseus Editor

This PR updates the styling in the Perseus Editor to create a more unified and accessible experience across components.

- Replaced the anchor tag used for panel toggling with a Wonder Blocks IconButton.
- Applied consistent styles and toggle behavior across widget-editor.tsx and issues-panel.tsx.
- Partially implements styling and structure from [Mark Fitzgerald’s POC #2219](#2219) to align with design direction.

![Screenshot 2025-06-12 at 9 51 37 AM](https://github.com/user-attachments/assets/728f8063-01db-465a-bd2b-014999a0742f)

Issue: LEMS-3125

## Test plan:

Author: tatianasnook

Reviewers: jeremywiebe, tatianasnook, catandthemachines, mark-fitzgerald

Required Reviewers:

Approved By: catandthemachines, jeremywiebe

Checks: ✅ 8 checks were successful

Pull Request URL: #2583
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.

1 participant