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

feat(LEMS-2664): update use control point and movable point with optional props #1906

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anakaren-rojas
Copy link
Contributor

@anakaren-rojas anakaren-rojas commented Nov 23, 2024

Summary:

  • Updates MovablePoint component and useControlPoint method to include optional props for aria label, aria described by and aria live
  • Sets default for aria live to polite; based on design doc, only the removal of a point or trying to move a point of out bounds warrants the use of assertive
  • Keeps sequenceNumber as a required prop for useControlPoint; If custom aria label is not provided, sequence number and point coordinate will be used as the aria label

Issue: LEMS-2664

Test plan:

Copy link
Contributor

github-actions bot commented Nov 23, 2024

Size Change: +35 B (0%)

Total Size: 1.29 MB

Filename Size Change
packages/perseus/dist/es/index.js 421 kB +35 B (+0.01%)
ℹ️ 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 77.9 kB
packages/math-input/dist/es/strings.js 1.79 kB
packages/perseus-core/dist/es/index.js 1.48 kB
packages/perseus-editor/dist/es/index.js 697 kB
packages/perseus-linter/dist/es/index.js 22.2 kB
packages/perseus/dist/es/strings.js 3.57 kB
packages/pure-markdown/dist/es/index.js 3.66 kB
packages/simple-markdown/dist/es/index.js 12.5 kB

compressed-size-action

@@ -47,6 +51,9 @@ export function useControlPoint(params: Params): Return {
const {
point,
sequenceNumber,
ariaDescribedBy,
ariaLabel,
ariaLive = "polite",
Copy link
Contributor Author

@anakaren-rojas anakaren-rojas Nov 23, 2024

Choose a reason for hiding this comment

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

Only removing point or moving out of bounds should be assertive per design doc

@anakaren-rojas anakaren-rojas changed the title update use control point and movable point with optional props feat(LEMS-2664): update use control point and movable point with optional props Nov 23, 2024
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