Behaviour of Avatar (light) changed with v9 #8795
wuifdesign
started this conversation in
Feedback
Replies: 1 comment 3 replies
-
|
It looks correct for me on the docs page – https://mantine.dev/core/avatar/#usage |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




Uh oh!
There was an error while loading. Please reload this page.
-
In v9, when you provide a custom color for the avatar, the icon color is now automatically set to either white or black based on contrast. Previously, it used a darker shade of the provided color.
This change appears to come from the following commit:
7acbb2f#diff-302fe31a83a0bbc31ce28617ecae4a8c6724ddda04b3e0db58e07824f780add6R105
Is this behavior intended? The darker shade approach still works when using predefined colors, which makes the behavior feel inconsistent when mixing predefined and custom colors.
You can reproduce this by selecting the "filled" variant and applying a custom color on the docs page:
https://mantine.dev/core/avatar/
Beta Was this translation helpful? Give feedback.
All reactions