Repository navigation
[test][fab] Add axe tests and WCAG conformance report - #49550
Merged
michelengelen merged 14 commits intoNov 27, 2026
Merged
michelengelen merged 14 commits into
michelengelen merged 14 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploy previewBundle size
PerformanceNo regressions in 32 benchmarks · precise to ±7.9% (±12.5% at worst) · ran 4m 51s · details Check out the code infra dashboard for more information about this PR. |
1 of 41 tasks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 29, 2026
1 of 41 tasks
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 on this branch and again after merging latest master, the generated files are up to date in both runs. The ratings also match Fab.js.
Left one question about the 1.4.4 page zoom check and a few small test nits.
LukasTy
reviewed
Nov 26, 2026
Keep both sides in the files that the IconButton PR (mui#49549) also edits. Take the lockfile from master. Regenerate the scorecard files with pnpm a11y:scorecard. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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>
LukasTy
reviewed
Nov 27, 2026
michelengelen
enabled auto-merge (squash)
November 27, 2026 09:45
LukasTy
reviewed
Nov 27, 2026
LukasTy
left a comment
Member
There was a problem hiding this comment.
One small nit.
I can approve the PR if you don't fancy addressing that correctness issue. 😊
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>
LukasTy
approved these changes
Nov 27, 2026
michelengelen
deleted the
feature/mat-2020-a11yfab-assess-wcag-22-conformance
branch
November 27, 2026 10:58
michelengelen
added a commit
to michelengelen/material-ui
that referenced
this pull request
Nov 27, 2026
…formance Master now has the Fab PR (mui#49550). 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 Fab PR (mui#49550). 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 Fab PR (mui#49550). 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 Fab PR (mui#49550). 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
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
Fab. This is Wave 1, item 2 of #49260. Part of #49406.Fab
Known gaps:
info(3.86:1) andwarning(3.11:1) are less than 4.5:1, as for a contained Button. On keyboard focus, the focus ripple behind the label lowers every palette color below 4.5:1, for exampleprimaryto 2.80:1.disableFocusRipplewith thefocusVisiblering fixes this.smallsize. Three lines spill out of every size, and the white text can become invisible on the page.height: 'auto',minHeight: 48, and vertical padding fix it.focusVisiblering does not remove the ripple, so the fix is the ring plusdisableFocusRipple.Report:
Fab/accessibility.mdChanges
Fab.test.js"WCAG 2.2 conformance" block covers 1.1.1, 1.4.3, 1.4.11, 2.1.1, 2.1.2, 2.4.3, 2.5.2, 2.5.3, 3.2.1, 3.2.2, and 4.1.2. The 3.2.2 test togglesaria-pressedwith Enter and checks that focus stays. The 1.4.3 test classifies the rendered extended-Fab colors against the palette contrast contract, so the known failing set cannot drift. The 1.4.11 test checks that the icon reaches 3:1 against the fill at rest. It runs only in the browser test projects.assertions: 'all'.FabA11yColorMatrixandFabA11yLongLabelrecordcolor-contrastwithout asserting it, because both show documented gaps.FloatingActionButtonZoomis left out, because most of it is Tabs.textOnlyResize: false, and the report then states the text-only result.skipCriteria: ['1.4.4']because its px box does not scale under text-only resize. It now usestextOnlyResize: false, and its 1.4.4 rating becomes Automated and unflagged.FloatingActionButtonExtendedSize, in the 2.4.7 focus-visible suite, and in thetheme.focusVisiblering suite.FabA11yLongLabelscreenshot records the long-label gap. It has three 280 px columns: each label fits on one line at the default settings, then wraps to two lines with the WCAG text-spacing values, and wraps and spills with 200% text (a nested theme withhtmlFontSize: 8).FabA11yLongLabelproves that the spill check detects this gap. It fails when the extended Fab starts to grow with its label.disableFocusRipple.Decisions for review
heightinFab.jscauses the spill. The author chooses the label, but the component does not grow with it.scroll-padding-bottomfixes it.Merge order with the sibling Wave 1 PRs
This branch includes master, with the IconButton (#49549), Link (#49555), and FormLabel (#49552) PRs. The Chip and ButtonGroup PRs edit some of the same places in
KeyboardRing.js,FOCUS_RING_TARGETS,criteriaSuites.mjs,demoMeta.ts,demoMeta.test.ts, andknownGaps.json. After one of them merges, resolve the conflicts by keeping both sides. The Chip PR (#49556) rates its 1.4.4 by page zoom with a manual step, and can switch to the automated check after this PR merges.Do not hand-merge the generated blocks: the docs-page tables, the rollup sentence,
scorecard.json,src/accessibility.md, andmanual-testing.md. Two PRs can produce the same line for different reasons, for example "26 Supports, 6 Partially Supports". Git then merges that line without a conflict, and the result is wrong. After each rebase, runpnpm a11y:scorecard.Not done in this PR
/regression-FocusVisible/KeyboardRing, and a new screenshot forFabA11yLongLabel.Follow-ups (tracked in #49477)
heightof the extended Fab withminHeightin the component.🤖 Generated with Claude Code