From c500652fb90c710ad7b0f6edd431ad3f59f550da Mon Sep 17 00:00:00 2001 From: Davey Holler Date: Thu, 20 Feb 2020 10:37:14 -0800 Subject: [PATCH] Adding a danger text color as well. --- src/components/expression/_variables.scss | 2 +- src/components/link/_link.scss | 2 +- src/components/stat/_stat.scss | 2 +- src/global_styling/variables/_colors.scss | 9 +++++---- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/components/expression/_variables.scss b/src/components/expression/_variables.scss index da2a00c3ca3..7c078521eb3 100644 --- a/src/components/expression/_variables.scss +++ b/src/components/expression/_variables.scss @@ -4,6 +4,6 @@ $euiExpressionColors: ( primary: $euiColorPrimaryText, secondary: $euiColorSecondaryText, warning: $euiColorWarningText, - danger: $euiColorDanger, + danger: $euiColorDangerText, accent: $euiColorAccentText, ); diff --git a/src/components/link/_link.scss b/src/components/link/_link.scss index 691bf355781..c732585e314 100644 --- a/src/components/link/_link.scss +++ b/src/components/link/_link.scss @@ -4,7 +4,7 @@ $textColors: ( secondary: $euiColorSecondaryText, accent: $euiColorAccentText, warning: $euiColorWarningText, - danger: $euiColorDanger, + danger: $euiColorDangerText, text: $euiTextColor, ghost: $euiColorGhost, ); diff --git a/src/components/stat/_stat.scss b/src/components/stat/_stat.scss index b023526e99e..09a3b090891 100644 --- a/src/components/stat/_stat.scss +++ b/src/components/stat/_stat.scss @@ -4,7 +4,7 @@ subdued: $euiColorDarkShade, primary: $euiColorPrimaryText, secondary: $euiColorSecondaryText, - danger: $euiColorDanger, + danger: $euiColorDangerText, accent: $euiColorAccentText, ); diff --git a/src/global_styling/variables/_colors.scss b/src/global_styling/variables/_colors.scss index 51e588f6696..6c31e37f868 100644 --- a/src/global_styling/variables/_colors.scss +++ b/src/global_styling/variables/_colors.scss @@ -31,10 +31,11 @@ $euiFocusBackgroundColor: tintOrShade($euiColorPrimary, 90%, 50%) !default; $euiPageBackgroundColor: tintOrShade($euiColorLightestShade, 50%, 30%) !default; // Constrasty text variants -$euiColorPrimaryText: makeHighContrastColor($euiColorPrimary, $euiColorEmptyShade); -$euiColorSecondaryText: makeHighContrastColor($euiColorSecondary, $euiColorEmptyShade); -$euiColorAccentText: makeHighContrastColor($euiColorAccent, $euiColorEmptyShade); -$euiColorWarningText: makeHighContrastColor($euiColorWarning, $euiColorEmptyShade); +$euiColorPrimaryText: makeHighContrastColor($euiColorPrimary, $euiPageBackgroundColor); +$euiColorSecondaryText: makeHighContrastColor($euiColorSecondary, $euiPageBackgroundColor); +$euiColorAccentText: makeHighContrastColor($euiColorAccent, $euiPageBackgroundColor); +$euiColorWarningText: makeHighContrastColor($euiColorWarning, $euiPageBackgroundColor); +$euiColorDangerText: makeHighContrastColor($euiColorDanger, $euiPageBackgroundColor); // Visualization colors