Skip to content

[test][Card] Add accessibility assessment and regression coverage - #49978

Open
nima000006 wants to merge 1 commit into
mui:masterfrom
nima000006:review/mui-card-a11y-49443
Open

nima000006 wants to merge 1 commit into
mui:masterfrom
nima000006:review/mui-card-a11y-49443

Conversation

@nima000006

@nima000006 nima000006 commented Dec 4, 2026 •

Copy link
Copy Markdown

Refs #49443.

Summary

  • Add a Card accessibility fixture and WCAG 2.2 assessment covering heading structure, informative and decorative media, reading order, reflow, and contrast.
  • Register the Card fixture in the CSS-dependent accessibility suite and regenerate its axe results and the accessibility scorecard. No runtime or public API changes.
  • Record the conditional outlined-border contrast gap: the default border was 1.32:1 against white. That matters when the boundary is needed to identify the card or state, not when it is purely decorative.

Verification

  • Chromium 158: 5 scoped tests passed (axe fixture, 320px reflow, 200% page zoom, 200% text resize, and WCAG text spacing). The fixture reported 17 axe passes, 0 violations, and 0 incomplete results.
  • pnpm a11y:scorecard:check, scoped formatting, ESLint, and git diff --check passed.
  • Manual NVDA + Chrome on Windows (PR author): The standalone Card fixture passed the heading, image, and link checks. Forest trail and Valley trail were announced as level-two headings; both informative images were announced by name and the decorative image was skipped. Tab reached View trail details, and Enter opened the Trail details section.
  • Pending: VoiceOver + Safari on macOS. A reviewer run of the Card checklist is welcome. This PR does not close the issue.

@code-infra-dashboard

code-infra-dashboard Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Deploy preview

Bundle size

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/private-theming 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Performance

No regressions in 32 benchmarks · precise to ±7.0% (±13.8% at worst) · ran 3m 27s · details


Check out the code infra dashboard for more information about this PR.

@nima000006

Copy link
Copy Markdown
Author

The five Chromium regression checks and scorecard validation passed. Manual screen-reader verification is still pending: I don’t have access to macOS, and I couldn’t launch the NVDA installer in my Windows test environment. Could a reviewer with macOS run the VoiceOver + Safari checklist in the Card report, or let me know how you’d prefer to handle that check? The automated results are not a substitute for either screen-reader check.

@nima000006
nima000006 marked this pull request as ready for review December 4, 2026 19:08

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant