Repository navigation
Conversation
…eraction `aria-live` sat on the `role="group"` root, which is also named via `aria-labelledby`. Every mutation inside the group (section focus, `aria-valuetext`, focus/error class toggles) re-fired the live region and NVDA re-spoke the label, even after focus left the field. Move the live region to the helper text: it is now always rendered with `role="status"` (empty margin collapsed), so helper text / error changes are still announced (mui#16637) without dragging the field label along. Fixes mui#23101
Builds the e2e fixtures twice (PickersTextField from the PR base vs. the PR head) and drives them with NVDA through Guidepup on Windows, logging what NVDA speaks for the label-repeat repro and the helper text error flow.
Deploy previewBundle size
Check out the code infra dashboard for more information about this PR. |
- Leave every field from its first section: in Firefox, Tab from a non-first section moves focus to the top of the page (also on master), which looped the key path and never reached the second field. - Assert the key path ends on the "After" button. - Retry `navigateToWebContent` until NVDA speaks for the page instead of recording an all-silent log. - Only enforce the master control on Chromium, where mui#23101 was reported; Firefox records whether master reproduces as an annotation. - Only assert the mui#16637 announcements on the fixed build.
With `role="status"` on the element referenced by `aria-describedby`, NVDA in Firefox stopped reading the helper text when focus enters the field. A plain `aria-live="polite" aria-atomic="true"` keeps the same announcements without changing the element's role.
Test the PR build only, no master build to compare against. One field per page, and one test per expected behavior: - label and helper text are read once when focus enters the field - the label is not read again while moving between sections or changing a value - the label is not read once focus moves to the next elements - a validation error is announced every time it appears, without the label
Contributor
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification-only PR for #23101, not meant to be merged. It runs a real NVDA on GitHub Actions Windows runners (via Guidepup) against the proposed
PickersTextFieldfix.role="group"is no longer anaria-liveregion, and the helper text is always rendered as a name-lessrole="status"region, so helper text changes are still announced ([pickers][fields] Improve accessible DOM structure behavior #16637). This is the same approach as [fields] Fix screen reader re-announcing the label on every field interaction #23103, rebuilt on current master.NVDA verifyworkflow. It builds the e2e fixtures twice:master(withPickersTextFieldreverted to the PR base) andfixed(PR head). It then runs both through NVDA in Chromium and Firefox and writes the spoken log to the job summary.The checks:
variant="standard"pickers with a label and helper text. Tab in, move across sections, change a value, then tab out.mastershould repeat the labels (control);fixedshould say each label once, with no leak onto the next element.Refs #23101, #23103