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

[SR][SR Tree] Update tree to use innerText #2090

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

nishasy
Copy link
Contributor

@nishasy nishasy commented Jan 9, 2025

Summary:

Now that we're using a11y.srOnly styling for the hidden
aria descriptions, we don't need to use textContent, we
can just use innerText.

We also don't need the test for hidden content.

Issue: none

Test plan:

yarn jest packages/perseus-editor/src/widgets/interactive-graph-editor/components/interactive-graph-sr-tree.test.tsx

Now that we're using `a11y.srOnly` styling for the hidden
aria descriptions, we don't need to use `textContent`, we
can just use `innerText`.

We also don't need the test for hidden content.

Issue: none

Test plan:
`yarn jest packages/perseus-editor/src/widgets/interactive-graph-editor/components/interactive-graph-sr-tree.test.tsx`
@nishasy nishasy self-assigned this Jan 9, 2025
@nishasy nishasy requested a review from benchristel January 9, 2025 21:33
Copy link
Contributor

github-actions bot commented Jan 9, 2025

npm Snapshot: Published

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

Example:

yarn add @khanacademy/perseus@PR2090

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

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

Copy link
Contributor

github-actions bot commented Jan 9, 2025

Size Change: -29 B (0%)

Total Size: 1.28 MB

Filename Size Change
packages/perseus-editor/dist/es/index.js 689 kB -29 B (0%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 39 kB
packages/keypad-context/dist/es/index.js 760 B
packages/kmath/dist/es/index.js 4.27 kB
packages/math-input/dist/es/index.js 78 kB
packages/math-input/dist/es/strings.js 1.79 kB
packages/perseus-core/dist/es/index.js 1.48 kB
packages/perseus-linter/dist/es/index.js 22.2 kB
packages/perseus/dist/es/index.js 419 kB
packages/perseus/dist/es/strings.js 4.64 kB
packages/pure-markdown/dist/es/index.js 3.66 kB
packages/simple-markdown/dist/es/index.js 12.5 kB

compressed-size-action

@nishasy nishasy marked this pull request as ready for review January 9, 2025 21:56
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