In dark mode, the contrast color for the checkbox check mark is not applied when using primary or warn color. If the primary or warn color is dark, the normal text color (white) is used, which by chance has a good contrast. But when the primary or warn color is light, the contrast is very bad:
For the accent color, and in light mode, the auto contrast works correctly.
:ghost: Brief Description
In dark mode, the contrast color for the checkbox check mark is not applied when using primary or warn color. If the primary or warn color is dark, the normal text color (white) is used, which by chance has a good contrast. But when the primary or warn color is light, the contrast is very bad:
For the accent color, and in light mode, the auto contrast works correctly.
:pancakes: Version
5.0.2
Steps To Reproduce
Steps to reproduce the behavior:
:police_car: Expected behavior
The auto contrast should be considered, for light colors the checkmark should be dark.
:heavy_plus_sign: Additional context
The selector which should set the contrast color is being overridden: