Skip to content

[material-ui][Switch] Failing on color contrast checks #39134

Open
@chris-gds

Description

@chris-gds

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

Link to live example:
https://mui.com/material-ui/react-switch/

Steps:

  1. Visit page.
  2. Check colour contrast.

Current behavior 😯

All of the switches fail colour contrast checks in some way.

Switch demo Switch demo Switch demo Switch demo
switch-4 on material-ui, highlighting poor contrast switch-3 on material-ui, highlighting poor contrast switch-2 on material-ui, highlighting poor contrast switch-1 on material-ui, highlighting poor contrast

Expected behavior 🤔

I would expect all of the switch Designs to pass colour contrast AA checks.

Context 🔦

Users that blind or visually impaired impacted - switches do not have the correct contrast.

Your environment 🌎

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions