Repository navigation
[test][form label] Add axe tests and WCAG conformance report - #49552
Merged
michelengelen merged 12 commits intoNov 27, 2026
Merged
michelengelen merged 12 commits into
michelengelen merged 12 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploy previewBundle size
PerformanceNo regressions in 32 benchmarks · precise to ±10.2% (±13.3% at worst) · ran 3m 43s · details Check out the code infra dashboard for more information about this PR. |
This was referenced Oct 28, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 task done
…rmance Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
siriwatknp
reviewed
Nov 23, 2026
siriwatknp
left a comment
Member
There was a problem hiding this comment.
Ran pnpm a11y:scorecard:check on this head and on a trial merge with latest master. Both are up to date.
Two things to settle before merge, the dark-mode contrast test and which component owns the required-group gap. Both are inline.
1 task done
LukasTy
reviewed
Nov 26, 2026
…rmance Keep both sides in knownGaps.json, where the IconButton PR (mui#49549) also adds rows. Take the lockfile from master. Regenerate the scorecard files with pnpm a11y:scorecard. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…rmance Master now has the Link PR (mui#49555). Keep both sides in knownGaps.json. Regenerate the scorecard files with pnpm a11y:scorecard. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
michelengelen
added a commit
to michelengelen/material-ui
that referenced
this pull request
Nov 27, 2026
The known-gaps note for Button names error in dark mode, but the Button report listed only info and warning. Add the dark-mode values to the 1.4.3 gap, section, manual steps, and pass condition. mui#49552 makes the identical edit. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
michelengelen
enabled auto-merge (squash)
November 27, 2026 09:46
LukasTy
approved these changes
Nov 27, 2026
michelengelen
deleted the
feature/mat-2024-a11yformlabel-assess-wcag-22-conformance
branch
November 27, 2026 10:36
michelengelen
added a commit
to michelengelen/material-ui
that referenced
this pull request
Nov 27, 2026
Master now has the FormLabel PR (mui#49552). Keep both sides in the files that it also edits. Regenerate the scorecard files with pnpm a11y:scorecard. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
michelengelen
added a commit
to michelengelen/material-ui
that referenced
this pull request
Nov 27, 2026
…formance Master now has the FormLabel PR (mui#49552). Keep both sides in the files that it also edits. Regenerate the scorecard files with pnpm a11y:scorecard. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
michelengelen
added a commit
to michelengelen/material-ui
that referenced
this pull request
Nov 27, 2026
…conformance Master now has the FormLabel PR (mui#49552). Keep both sides in the files that it also edits. Regenerate the scorecard files with pnpm a11y:scorecard. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
michelengelen
added a commit
to michelengelen/material-ui
that referenced
this pull request
Nov 27, 2026
…rmance Master now has the FormLabel PR (mui#49552). Keep both sides in the files that it also edits. Regenerate the scorecard files with pnpm a11y:scorecard. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
michelengelen
added a commit
to michelengelen/material-ui
that referenced
this pull request
Nov 27, 2026
Master now has the FormLabel PR (mui#49552). Keep both sides in the files that it also edits. Regenerate the scorecard files with pnpm a11y:scorecard. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This was referenced Nov 27, 2026
michelengelen
added a commit
to JCQuintas/material-ui
that referenced
this pull request
Nov 27, 2026
Master now has the dark-mode error text in the Button 1.4.3 section, from mui#49552. Keep both texts in the gap line and in the section. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
Adds axe coverage, WCAG unit tests, and a WCAG 2.2 Level A/AA conformance report for
FormLabel. This is Wave 1, item 6 of #49260. Part of #49410.FormLabel
Known gaps:
requiredgroup legend, the asterisk isaria-hidden. Checkbox, Radio, and Switch do not takerequiredfrom FormControl, and RadioGroup has norequiredprop, so assistive technology gets no required state. FormLabel owns this gap. Unit tests pin it for Checkbox, Radio, Switch, and RadioGroup.maincolor of its field:info(3.86:1) andwarning(3.11:1) fail in light mode. In dark mode, the error label falls below 4.5:1 on a Paper with elevation 2 or more, such as a Menu or Dialog (about 4.3:1 at elevation 2, 3.14:1 at elevation 24). The elevation overlay lightens the surface. At elevation 1, the label is about 4.5:1, which is borderline.Report:
FormLabel/accessibility.mdChanges
FormLabel.test.js"WCAG 2.2 conformance" block covers:component="legend"renders alegendelement that names the fieldset group.htmlForis forwarded as theforattribute. Checkbox, Radio, and Switch do not getrequiredfrom FormControl, and RadioGroup gets noaria-required(documented gap).FormLabel.test.js, and "required" inInputBase.test.js.form-labelslug, with a docs folder that holds onlyform-label.a11y.json.FormLabelA11yStatesandFormLabelA11yColorMatrixDarkassert every rule.FormLabelA11yColorMatrixrecords the light-modecolor-contrastfailure without asserting it.requiredon FormControlLabel, which forwards it to its control.infoandwarning, and forerroron a dark Paper with elevation 2 or more. There is no separate dark-mode row.info,warning;errorin dark mode". The workaround now includes the dark-mode fix: a lightererror.main, or a surface with elevation 0 or 1. It also says that elevation does not help the label of afilledTextField. [test][form helper text] Add axe tests and WCAG conformance report #49553 makes the same two edits.fillederror label falls short at every elevation (about 4.04:1 at elevation 0). The rating stays Partially Supports. [test][form helper text] Add axe tests and WCAG conformance report #49553 makes the identical edit.error. Thecontainedlabel is 3.68:1 on every surface. Thetextandoutlinedlabels fall short on a Paper with elevation 2 or more. [test][form helper text] Add axe tests and WCAG conformance report #49553 makes the identical edit.required". RadioGroup has norequiredprop. The text now says to setaria-required="true"on the RadioGroup.Decisions for review
The Form* reports now use these team rating rules:
Decisions for FormLabel:
htmlForadds its area to the target of its field, so the field report rates 2.5.2 and 2.5.8.requiredstate, as in TextField. On a group legend, nothing duplicates it, so the gap is rated under 1.3.1.aria-required="true"on the RadioGroup, because the pass condition fails without it.Merge order with the sibling Wave 1 PRs
This branch includes master, with the IconButton PR (#49549) and the Link PR (#49555). Do not hand-merge the generated blocks: after each rebase, run
pnpm a11y:scorecard.knownGaps.json,demoMeta.ts,demoMeta.test.ts, andcriteriaSuites.mjsconflict with the other Wave 1 PRs as adjacent insertions. #49553 edits the same palette row inknownGaps.json: keep the FormLabel entry and the FormHelperText entry.Not done in this PR
Follow-ups (tracked in #49477)
aria-requiredon RadioGroup,requiredon a single Checkbox or Switch, and the legend text for a checkbox group.warningfor the focused label.InputLabeluses the FormLabel styles, so focusedinfofails too.🤖 Generated with Claude Code