From 981914eb812fc528932f5d440e508a5ecebafecf Mon Sep 17 00:00:00 2001
From: Anish Aggarwal <43617894+anishagg17@users.noreply.github.com>
Date: Mon, 24 Feb 2020 22:26:02 +0530
Subject: [PATCH] Fixes #2217 : removed duplicate icons (#2908)
* removed duplicate icons
* Fixing changelog and updating tests (#1)
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
---
CHANGELOG.md | 4 +++
src-docs/src/views/icon/icons.js | 2 --
.../icon/__snapshots__/icon.test.tsx.snap | 34 -------------------
src/components/icon/assets/vis_controls.js | 16 ---------
src/components/icon/assets/vis_controls.svg | 3 --
src/components/icon/assets/vis_heatmap.js | 16 ---------
src/components/icon/assets/vis_heatmap.svg | 3 --
src/components/icon/icon.tsx | 2 --
8 files changed, 4 insertions(+), 76 deletions(-)
delete mode 100644 src/components/icon/assets/vis_controls.js
delete mode 100644 src/components/icon/assets/vis_controls.svg
delete mode 100644 src/components/icon/assets/vis_heatmap.js
delete mode 100644 src/components/icon/assets/vis_heatmap.svg
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f70d2e2ce79..b8e5fa4dbd4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,10 @@
- Fixed building dev & docs on Windows ([#2847](https://github.com/elastic/eui/pull/2847))
- Fixed a bug in `EuiDataGrid` causing the first cell to autofocus if interactive ([#2872](https://github.com/elastic/eui/pull/2872))
+**Breaking changes**
+
+- Removed `visControls` and `visHeatmap` duplicate icons from docs ([#2908](https://github.com/elastic/eui/pull/2908))
+
## [`19.0.0`](https://github.com/elastic/eui/tree/v19.0.0)
- Added `cheer` glyph to `EuiIcon` ([#2814](https://github.com/elastic/eui/pull/2814))
diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js
index de9f2b8f637..a462c769bf7 100644
--- a/src-docs/src/views/icon/icons.js
+++ b/src-docs/src/views/icon/icons.js
@@ -201,10 +201,8 @@ export const iconTypes = [
'visBarHorizontalStacked',
'visBarVertical',
'visBarVerticalStacked',
- 'visControls',
'visGauge',
'visGoal',
- 'visHeatmap',
'visLine',
'visMapCoordinate',
'visMapRegion',
diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap
index f60a8d6b9c8..01f39c8c6d5 100644
--- a/src/components/icon/__snapshots__/icon.test.tsx.snap
+++ b/src/components/icon/__snapshots__/icon.test.tsx.snap
@@ -8239,23 +8239,6 @@ exports[`EuiIcon props type visBarVerticalStacked is rendered 1`] = `
`;
-exports[`EuiIcon props type visControls is rendered 1`] = `
-
-`;
-
exports[`EuiIcon props type visGauge is rendered 1`] = `