Accessibility: Increase badge constrast to be WCAG AA compliant (#59531)

This commit is contained in:
Laura Fernández 2022-11-30 13:20:59 +01:00 committed by GitHub
parent 0b42b2f790
commit ddc3706f19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ const getStyles = (theme: GrafanaTheme2, color: BadgeColor) => {
} else {
bgColor = tinycolor(sourceColor).setAlpha(0.15).toString();
borderColor = tinycolor(sourceColor).lighten(20).toString();
textColor = tinycolor(sourceColor).darken(15).toString();
textColor = tinycolor(sourceColor).darken(20).toString();
}
return {