From 5610aee184b5fee5eb021f220241aa5a66986112 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Wed, 30 Nov 2022 15:41:51 +0200 Subject: [PATCH] [v9.3.x] Accessibility: Increase badge constrast to be WCAG AA compliant (#59549) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Accessibility: Increase badge constrast to be WCAG AA compliant (#59531) (cherry picked from commit ddc3706f19be97c7d9fca80a80a81781b4fe9235) Co-authored-by: Laura Fernández --- packages/grafana-ui/src/components/Badge/Badge.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grafana-ui/src/components/Badge/Badge.tsx b/packages/grafana-ui/src/components/Badge/Badge.tsx index b97dbbf7499..a5f07e76835 100644 --- a/packages/grafana-ui/src/components/Badge/Badge.tsx +++ b/packages/grafana-ui/src/components/Badge/Badge.tsx @@ -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 {