diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2149ac96036..bb9268f3a07 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,8 @@
## [`master`](https://github.com/elastic/eui/tree/master)
+- Improved contrast for `EuiIcon` and `EuiButtonIcon` named colors. This affects `EuiHealth` which uses the `EuiIcon` colors. ([#4049](https://github.com/elastic/eui/pull/4049))
+- Added color `accent` to `EuiButtonIcon` ([#4049](https://github.com/elastic/eui/pull/4049))
+
**Theme: Amsterdam**
- Removed `border-radius` from `EuiCallout` ([#4066](https://github.com/elastic/eui/pull/4066))
diff --git a/src-docs/src/components/guide_components.scss b/src-docs/src/components/guide_components.scss
index 0dab28c907d..5047858a5e6 100644
--- a/src-docs/src/components/guide_components.scss
+++ b/src-docs/src/components/guide_components.scss
@@ -175,7 +175,6 @@ $guideZLevelHighest: $euiZLevel9 + 1000;
@if (lightness($euiTextColor) < 50) {
background: $euiColorDarkestShade;
}
- padding: $euiSizeL;
}
.guideDemo__icon {
diff --git a/src-docs/src/views/button/button_ghost.js b/src-docs/src/views/button/button_ghost.js
index a1476b00203..b282c4ddc18 100644
--- a/src-docs/src/views/button/button_ghost.js
+++ b/src-docs/src/views/button/button_ghost.js
@@ -7,6 +7,7 @@ import {
EuiFlexGroup,
EuiFlexItem,
EuiButtonToggle,
+ EuiPanel,
} from '../../../../src/components';
export default () => {
@@ -17,67 +18,67 @@ export default () => {
};
return (
-
-
- window.alert('Button clicked')}>
- Ghost
-
-
+
+
+
+ window.alert('Button clicked')}>
+ Ghost
+
+
-
- window.alert('Button clicked')}>
- Filled
-
-
+
+ window.alert('Button clicked')}>
+ Filled
+
+
-
- window.alert('Button clicked')}>
- small
-
-
+
+ window.alert('Button clicked')}>
+ small
+
+
-
- window.alert('Button clicked')}
- aria-label="Your account"
- />
-
+
+ window.alert('Button clicked')}
+ aria-label="Your account"
+ />
+
-
-
- Loading…
-
-
+
+
+ Loading…
+
+
-
-
- Loading…
-
-
+
+
+ Loading…
+
+
-
-
-
-
+
+
+
+
+
);
};
diff --git a/src-docs/src/views/button/button_icon.js b/src-docs/src/views/button/button_icon.js
index b39e96bd0e2..db9d4ceb536 100644
--- a/src-docs/src/views/button/button_icon.js
+++ b/src-docs/src/views/button/button_icon.js
@@ -9,6 +9,7 @@ import {
const colors = [
'primary',
'text',
+ 'accent',
'subdued',
'success',
'warning',
diff --git a/src-docs/src/views/health/health.js b/src-docs/src/views/health/health.js
index 822e9a1390e..9e314a085c6 100644
--- a/src-docs/src/views/health/health.js
+++ b/src-docs/src/views/health/health.js
@@ -4,7 +4,11 @@ import { EuiHealth, EuiSpacer } from '../../../../src/components';
export default () => (
-
Unknown
+
Inactive
+
+
+
+
Active
diff --git a/src-docs/src/views/icon/icon_colors.js b/src-docs/src/views/icon/icon_colors.js
index 14b759f7a3a..9f61598f0af 100644
--- a/src-docs/src/views/icon/icon_colors.js
+++ b/src-docs/src/views/icon/icon_colors.js
@@ -11,6 +11,8 @@
import React from 'react';
+import classNames from 'classnames';
+
import {
EuiFlexGrid,
EuiFlexItem,
@@ -24,7 +26,7 @@ import {
const iconColors = [
'default',
'primary',
- 'secondary',
+ 'success',
'accent',
'warning',
'danger',
@@ -44,9 +46,14 @@ export default () => (
className="guideDemo__icon"
key={iconColor}
style={{ width: '340px' }}>
-
+
-
+
{iconColor}
diff --git a/src/components/button/button_icon/__snapshots__/button_icon.test.tsx.snap b/src/components/button/button_icon/__snapshots__/button_icon.test.tsx.snap
index 5ee45e09868..2cbec77a5c1 100644
--- a/src/components/button/button_icon/__snapshots__/button_icon.test.tsx.snap
+++ b/src/components/button/button_icon/__snapshots__/button_icon.test.tsx.snap
@@ -9,6 +9,14 @@ exports[`EuiButtonIcon is rendered 1`] = `
/>
`;
+exports[`EuiButtonIcon props color accent is rendered 1`] = `
+
+`;
+
exports[`EuiButtonIcon props color danger is rendered 1`] = `