AvatarGroup +n icon's default colors do not meet minimum contrast ratio threshold for accessibility #44179
Labels
accessibility
a11y
component: avatar
This is the name of the generic UI component, not the React module!
enhancement
This is not a bug, nor a new feature
Steps to reproduce
Link to live example: (required)
Every (+n) avatar on https://mui.com/material-ui/react-avatar/
Steps:
Current behavior
Axe devtools highlights all the (+n) avatars, with the message: Element has insufficient color contrast of 1.87 (foreground color: #ffffff, background color: #bdbdbd, font size: 15.0pt (20px), font weight: normal). Expected contrast ratio of 4.5:1
Expected behavior
The default colors on (+n) avatars should have a high enough contrast ratio to pass the accessibility scan.
Context
I am trying to fix accessibility issues on my site, and while I could override the avatar colors on my own, it seems worthwhile to make the default colors pass accessibility tests out of the box.
Your environment
npx @mui/envinfo
This bug is likely system agnostic though since it is a default colors accessibility issue that can be seen on the mui website.
Search keywords: avatargroup default colors accessibility
The text was updated successfully, but these errors were encountered: