Skip to content

Commit

Permalink
Adding a danger text color as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
daveyholler authored and cchaos committed Feb 21, 2020
1 parent 3752715 commit c500652
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/expression/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ $euiExpressionColors: (
primary: $euiColorPrimaryText,
secondary: $euiColorSecondaryText,
warning: $euiColorWarningText,
danger: $euiColorDanger,
danger: $euiColorDangerText,
accent: $euiColorAccentText,
);
2 changes: 1 addition & 1 deletion src/components/link/_link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $textColors: (
secondary: $euiColorSecondaryText,
accent: $euiColorAccentText,
warning: $euiColorWarningText,
danger: $euiColorDanger,
danger: $euiColorDangerText,
text: $euiTextColor,
ghost: $euiColorGhost,
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/stat/_stat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
subdued: $euiColorDarkShade,
primary: $euiColorPrimaryText,
secondary: $euiColorSecondaryText,
danger: $euiColorDanger,
danger: $euiColorDangerText,
accent: $euiColorAccentText,
);

Expand Down
9 changes: 5 additions & 4 deletions src/global_styling/variables/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c500652

Please sign in to comment.