Repository navigation
[test][chip] Add axe tests and WCAG conformance report - #49556
Merged
michelengelen merged 18 commits intoNov 27, 2026
Merged
michelengelen merged 18 commits into
michelengelen merged 18 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploy previewBundle size
PerformanceNo regressions in 32 benchmarks · precise to ±5.8% (±9.4% at worst) · ran 3m 12s · details Check out the code infra dashboard for more information about this PR. |
1 task done
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
siriwatknp
reviewed
Nov 23, 2026
LukasTy
reviewed
Nov 26, 2026
Keep both sides in the files that the IconButton PR (mui#49549) also edits. 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 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
enabled auto-merge (squash)
November 27, 2026 10:15
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
reviewed
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>
Co-authored-by: Lukas Tyla <llukas.tyla@gmail.com> Signed-off-by: Michel Engelen <32863416+michelengelen@users.noreply.github.com>
LukasTy
approved these changes
Nov 27, 2026
1 task done
michelengelen
deleted the
feature/mat-2028-a11ychip-assess-wcag-22-conformance
branch
November 27, 2026 13:12
michelengelen
added a commit
to michelengelen/material-ui
that referenced
this pull request
Nov 27, 2026
…conformance Master now contains the Chip report (mui#49556). Keep the Chip and the FormHelperText enrolment tests. Regenerate the scorecard files. Put FormHelperText after Fab in the contrast gap list. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
1 task done
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
Chip. This is Wave 1, item 10 of #49260. Part of #49414.Chip
Known gaps, each confirmed in a browser or, for 1.1.1, from the source:
info(3.86:1) andwarning(3.11:1) labels fail in both variants. On a focusedoutlinedchip, every color exceptsecondaryfails (primary3.93:1,error4.15:1,success4.37:1). On a hovered clickableoutlinedchip,primaryis 4.37:1.defaultones: 1.86:1 (filled) and 1.88:1 (outlined). The focused background is 1.61:1 against the page.medium) or 16 px (small). On a clickable and deletable chip, the spacing exception does not apply.aria-disabled, and it stays focusable. A delete-only chip has the button role, but Enter and Space do nothing.Report:
Chip/accessibility.mdChanges
Chip.test.js"WCAG 2.2 conformance" block covers 1.1.1, 1.4.3, 1.4.11, 2.1.2, 2.4.3, 2.5.2, 2.5.3, 3.2.1, and 4.1.2.filledandoutlinedcolors with the palette contrast contract. A third test pins the failing set for a focusedoutlinedchip: all colors exceptsecondary.aria-disabledand stays focusable.assertions: 'all', plus four fixtures:ChipA11ySemanticStatesandChipA11yLongLabelassert every rule.ChipA11yColorMatrixandChipA11yKnownGapsrecordcolor-contrastwithout asserting it. The failures are theinfoandwarninglabels, and the faded label of a disabled delete-only chip. axe rates that chip as active, because it has noaria-disabled.AvatarChipsasserts every rule. After [chip] Improve default avatar text contrast #49576, the letter avatar passescolor-contrast.theme.focusVisiblering suite. The ring suite proves thefocusVisibleworkaround for Chip.ChipA11yLongLabelexpect the truncation at 200% text, with WCAG spacing, and at 320 px. The first also checks that the label haswhite-space: nowrap, because the spacing step has only about 5 px of margin. They fail when Chip starts to wrap its label.chips.md). The page no longer says that releasing Escape blurs the Chip; [material-ui][Chip] Fix focus issue related with the Escape event #41578 removed that behavior. It now explains focus after a deletion andskipFocusWhenDisabled.render.mjs). Chip 1.4.11 is the first ❌ rating in the scorecard.Decisions for review
defaultones, and the default focus indicator fails.outlinedborder does not need 3:1. The label identifies the chip. The Linear issue asked for 3:1. The report records the values and the reason.aria-disabled. The 4.1.2 gap records this.chips.mdnote tells authors to move focus.Merge order with the sibling Wave 1 PRs
This branch includes master, with the IconButton (#49549), Fab (#49550), ButtonGroup (#49551), FormLabel (#49552), FormGroup (#49554), and Link (#49555) PRs.
knownGaps.json,demoMeta.ts,criteriaSuites.mjs,KeyboardRing.js, andFOCUS_RING_TARGETSconflict as adjacent insertions with the FormHelperText PR (#49553), where both PRs edit them. Resolve them by keeping both sides. Do not hand-merge the generated blocks: after each rebase, runpnpm a11y:scorecard.Not done in this PR
Follow-ups (tracked in #49477)
aria-disabledon a disabled delete-only chip.outlinedlabel at 4.5:1 on focus and hover, for example with a darker label in these states.🤖 Generated with Claude Code