From 54735ace49a90e6a2232f357d4f1a48a08ecea19 Mon Sep 17 00:00:00 2001 From: cchaos Date: Wed, 16 Jan 2019 14:58:28 -0500 Subject: [PATCH 1/2] Added snowflake icon --- src-docs/src/views/icon/icons.js | 1 + .../icon/__snapshots__/icon.test.tsx.snap | 16 ++++++++++++++++ src/components/icon/assets/snowflake.svg | 3 +++ src/components/icon/icon.tsx | 2 ++ 4 files changed, 22 insertions(+) create mode 100644 src/components/icon/assets/snowflake.svg diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index 21c15ec1580..9513cc5409b 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -128,6 +128,7 @@ const iconTypes = [ 'shard', 'share', 'sortable', + 'snowflake', 'sortDown', 'sortLeft', 'sortRight', diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index 912985bc3f7..6a102885d85 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -5136,6 +5136,22 @@ exports[`EuiIcon props type share is rendered 1`] = ` `; +exports[`EuiIcon props type snowflake is rendered 1`] = ` + + + +`; + exports[`EuiIcon props type sortDown is rendered 1`] = ` + + diff --git a/src/components/icon/icon.tsx b/src/components/icon/icon.tsx index d3016ef9c02..3e6e1602f08 100644 --- a/src/components/icon/icon.tsx +++ b/src/components/icon/icon.tsx @@ -209,6 +209,7 @@ import securityAnalyticsApp from './assets/app_security_analytics.svg'; import securityApp from './assets/app_security.svg'; import shard from './assets/shard.svg'; import share from './assets/share.svg'; +import snowflake from './assets/snowflake.svg'; import sortable from './assets/sortable.svg'; import sortDown from './assets/sort_down.svg'; import sortLeft from './assets/sortLeft.svg'; @@ -499,6 +500,7 @@ const typeToIconMap = { securityApp, shard, share, + snowflake, sortable, sortDown, sortLeft, From 3992fc00d54defbd63d0748dc6d2bfac424bb183 Mon Sep 17 00:00:00 2001 From: cchaos Date: Wed, 16 Jan 2019 15:01:19 -0500 Subject: [PATCH 2/2] cl --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b91b44078b1..af3cda46188 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ## [`master`](https://github.com/elastic/eui/tree/master) -No public interface changes since `6.4.0`. +- Added `snowflake` icon ([#1445](https://github.com/elastic/eui/pull/1445)) ## [`6.4.0`](https://github.com/elastic/eui/tree/v6.4.0)