Skip to content

fix(ui): associate and announce test modules validation error in device qualification form - #1675

Merged
sofyakurilova merged 2 commits into
devfrom
bug/a11y/devices
Oct 28, 2026
Merged

sofyakurilova merged 2 commits into
devfrom
bug/a11y/devices

Conversation

@sofyakurilova

Copy link
Copy Markdown
Collaborator
  • Add role="alert", aria-live="polite", and a unique [id] to the standalone <mat-error> in DeviceQualificationFromComponent so screen readers announce the error when all test modules are unchecked.
  • Pass [errorId] to DeviceTestsComponent and bind aria-describedby and aria-invalid="true" on both <section formArrayName="test_modules"> and the underlying <input type="checkbox"> controls when in an error state.
  • Add unit tests covering the error live-region attributes, programmatic aria-describedby association, and aria-invalid state cleanup.

…ce qualification form

- Add `role="alert"`, `aria-live="polite"`, and a unique `[id]` to the standalone
  `<mat-error>` in `DeviceQualificationFromComponent` so screen readers announce
  the error when all test modules are unchecked.
- Pass `[errorId]` to `DeviceTestsComponent` and bind `aria-describedby` and
  `aria-invalid="true"` on both `<section formArrayName="test_modules">` and the
  underlying `<input type="checkbox">` controls when in an error state.
- Add unit tests covering the error live-region attributes, programmatic
  `aria-describedby` association, and `aria-invalid` state cleanup.
@sofyakurilova
sofyakurilova requested a review from hitnik October 28, 2026 12:50
@sofyakurilova sofyakurilova added the a11y Fix related to accessibility label Oct 28, 2026
@sofyakurilova
sofyakurilova merged commit 01c5f21 into dev Oct 28, 2026
25 checks passed
@sofyakurilova
sofyakurilova deleted the bug/a11y/devices branch October 28, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a11y Fix related to accessibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants