[v9.3.x] Accessibility: Increase badge constrast to be WCAG AA compliant (#59549)
Accessibility: Increase badge constrast to be WCAG AA compliant (#59531)
(cherry picked from commit ddc3706f19)
Co-authored-by: Laura Fernández <laura.fernandez@grafana.com>
This commit is contained in:
co-authored by
Laura Fernández
parent
e15ee039e1
commit
5610aee184
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user