diff --git a/src-docs/src/views/guidelines/colors.js b/src-docs/src/views/guidelines/colors.js index a63303dde3bd..78318a4416b4 100644 --- a/src-docs/src/views/guidelines/colors.js +++ b/src-docs/src/views/guidelines/colors.js @@ -45,21 +45,6 @@ const allowedColors = [ 'euiColorAccent', ] -function renderPaletteColor(color) { - return ( - -
-
-

{color}

- -

RGB {lightColors[color].r}, {lightColors[color].g}, {lightColors[color].b}

- -

HEX {rgbToHex(lightColors[color].rgba).toUpperCase()}

-
- - ); -} - export default() => ( @@ -76,7 +61,16 @@ export default() => ( {allowedColors.map(function(color, index) { - return renderPaletteColor(color); + +
+
+

{color}

+ +

RGB {lightColors[color].r}, {lightColors[color].g}, {lightColors[color].b}

+ +

HEX {rgbToHex(lightColors[color].rgba).toUpperCase()}

+
+ })} @@ -115,7 +109,7 @@ export default() => (
{allowedColors.map(function(color, index) { return ( - + {allowedColors.map(function(color2, index) { const contrast = ( @@ -133,14 +127,14 @@ export default() => ( AAA
); - } else if (contrast > 4.5) { + } else if (contrast > 4.4) { contrastRating = (
AA
); - } else if (contrast > 3) { + } else if (contrast >= 2.9) { contrastRating = (
diff --git a/src/components/badge/__snapshots__/badge.test.js.snap b/src/components/badge/__snapshots__/badge.test.js.snap index 4c58bc5fb44d..040662074b35 100644 --- a/src/components/badge/__snapshots__/badge.test.js.snap +++ b/src/components/badge/__snapshots__/badge.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`EuiBadge is rendered 1`] = ` -
-
+ `; exports[`EuiBadge props color accent is rendered 1`] = ` -
-
+ `; exports[`EuiBadge props color danger is rendered 1`] = ` -
-
+ `; exports[`EuiBadge props color default is rendered 1`] = ` -
-
+ `; exports[`EuiBadge props color primary is rendered 1`] = ` -
-
+ `; exports[`EuiBadge props color secondary is rendered 1`] = ` -
-
+ `; exports[`EuiBadge props color warning is rendered 1`] = ` -
-
+ `; exports[`EuiBadge props iconSide left is rendered 1`] = ` -
-
+ `; exports[`EuiBadge props iconSide right is rendered 1`] = ` -
-
+ `; exports[`EuiBadge props iconType is rendered 1`] = ` -
-
+ `; diff --git a/src/components/badge/badge.js b/src/components/badge/badge.js index d5328b52c626..c7c910d08ac9 100644 --- a/src/components/badge/badge.js +++ b/src/components/badge/badge.js @@ -98,7 +98,7 @@ export const EuiBadge = ({ ); } else { return ( -
-
+ ); } }; diff --git a/src/global_styling/variables/_colors.scss b/src/global_styling/variables/_colors.scss index 0223bdcf34f8..2ddb15c52b90 100644 --- a/src/global_styling/variables/_colors.scss +++ b/src/global_styling/variables/_colors.scss @@ -29,7 +29,7 @@ // Core $euiColorPrimary: #0079a5 !default; -$euiColorSecondary: #018277 !default; +$euiColorSecondary: #017F75 !default; $euiColorAccent: #DD0A73 !default; $euiColorHighlight: #FFFBF1 !default; $euiColorGhost: #FFF !default; @@ -37,7 +37,7 @@ $euiColorGhost: #FFF !default; // Status $euiColorSuccess: $euiColorSecondary !default; $euiColorDanger: #A30000 !default; -$euiColorWarning: darken(#D95221, 3%) !default; +$euiColorWarning: #C34A1E !default; // Grays $euiColorEmptyShade: #FFF !default;