From 09301c29563fa5aeec37299ed7a034f174e81b82 Mon Sep 17 00:00:00 2001
From: Caroline Horn <549577+cchaos@users.noreply.github.com>
Date: Fri, 25 May 2018 17:16:08 -0400
Subject: [PATCH] Added & fixed some icons (#881)
---
CHANGELOG.md | 2 +-
src-docs/src/views/icon/icons.js | 2 +
.../icon/__snapshots__/icon.test.js.snap | 93 ++++++++++++-------
.../icon/assets/minus_in_circle.svg | 4 +-
src/components/icon/assets/node.svg | 2 +-
src/components/icon/assets/offline.svg | 3 +
src/components/icon/assets/online.svg | 3 +
src/components/icon/assets/shard.svg | 2 +-
src/components/icon/assets/stats.svg | 2 +-
src/components/icon/icon.js | 4 +
10 files changed, 77 insertions(+), 40 deletions(-)
create mode 100644 src/components/icon/assets/offline.svg
create mode 100644 src/components/icon/assets/online.svg
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 76947c9f4e7..b22ef047ba2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,7 +6,7 @@ No public changes since 0.0.50
- Created `EuiToggle`, `EuiButtonToggle`, and `EuiButtonGroup` ([#872](https://github.com/elastic/eui/pull/872))
- `EuiBasicTable` and `EuiInMemoryTable` now accept `rowProps` and `cellProps` callbacks,
-which let you apply custom props to rows and props ([#869](https://github.com/elastic/eui/pull/869))
+- Added `offine` and `online` icons ([#881](https://github.com/elastic/eui/pull/881))
**Breaking changes**
diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js
index 657b9dc5cb7..81ee27e9940 100644
--- a/src-docs/src/views/icon/icons.js
+++ b/src-docs/src/views/icon/icons.js
@@ -94,6 +94,8 @@ const iconTypes = [
'minusInCircle',
'node',
'number',
+ 'offline',
+ 'online',
'pause',
'pencil',
'pin',
diff --git a/src/components/icon/__snapshots__/icon.test.js.snap b/src/components/icon/__snapshots__/icon.test.js.snap
index 4e8153d40b9..c3c81696d24 100644
--- a/src/components/icon/__snapshots__/icon.test.js.snap
+++ b/src/components/icon/__snapshots__/icon.test.js.snap
@@ -2490,7 +2490,7 @@ exports[`EuiIcon renders type logoElastic 1`] = `
`;
-exports[`EuiIcon renders type logoElasticsearch 1`] = `
+exports[`EuiIcon renders type logoElasticStack 1`] = `
`;
-exports[`EuiIcon renders type logoElasticStack 1`] = `
+exports[`EuiIcon renders type logoElasticsearch 1`] = `
`;
@@ -3113,7 +3113,7 @@ exports[`EuiIcon renders type minusInCircle 1`] = `
xmlns="http://www.w3.org/2000/svg"
>
`;
@@ -3155,7 +3155,6 @@ exports[`EuiIcon renders type node 1`] = `
>
`;
@@ -3175,6 +3174,34 @@ exports[`EuiIcon renders type number 1`] = `
`;
+exports[`EuiIcon renders type offline 1`] = `
+
+`;
+
+exports[`EuiIcon renders type online 1`] = `
+
+`;
+
exports[`EuiIcon renders type pause 1`] = `
`;
@@ -3678,7 +3704,6 @@ exports[`EuiIcon renders type stats 1`] = `
>
diff --git a/src/components/icon/assets/minus_in_circle.svg b/src/components/icon/assets/minus_in_circle.svg
index fd2689836c9..98280dcb7d7 100644
--- a/src/components/icon/assets/minus_in_circle.svg
+++ b/src/components/icon/assets/minus_in_circle.svg
@@ -1,3 +1,3 @@
-