From 8fd96ce67d3f0183043d0b7c841f49cba3f54e37 Mon Sep 17 00:00:00 2001 From: miukimiu Date: Tue, 21 Apr 2020 13:03:05 +0100 Subject: [PATCH 1/4] Adding download glyph to EuiIcon --- CHANGELOG.md | 1 + src-docs/src/views/icon/icons.js | 1 + .../icon/__snapshots__/icon.test.tsx.snap | 20 +++++++++++++++++++ src/components/icon/assets/download.js | 17 ++++++++++++++++ src/components/icon/assets/download.svg | 4 ++++ src/components/icon/icon.tsx | 1 + 6 files changed, 44 insertions(+) create mode 100644 src/components/icon/assets/download.js create mode 100644 src/components/icon/assets/download.svg diff --git a/CHANGELOG.md b/CHANGELOG.md index 52ef601408c..8452dcfa1ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - Added `showCloseButton` and `dockedBreakpoint` flexibility to `EuiCollapsibleNav` ([#3330](https://github.com/elastic/eui/pull/3330)) - Added `panelStyle` prop to `EuiPopover` to distinguish style object configuration ([#3329](https://github.com/elastic/eui/pull/3329)) +- Added `download` glyph to `EuiIcon` ([#3329](https://github.com/elastic/eui/pull/3329)) **Bug Fixes** diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index d8f76852a32..09d4ad6f288 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -67,6 +67,7 @@ export const iconTypes = [ 'documentEdit', 'documents', 'dot', + 'download', 'email', 'empty', 'exit', diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index 8433d64f031..c31023d19ad 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -1628,6 +1628,26 @@ exports[`EuiIcon props type dot is rendered 1`] = ` `; +exports[`EuiIcon props type download is rendered 1`] = ` + +`; + exports[`EuiIcon props type editorAlignCenter is rendered 1`] = ` ); diff --git a/src/components/icon/assets/download.svg b/src/components/icon/assets/download.svg index cb46a14f3a2..ebcae09c6ef 100644 --- a/src/components/icon/assets/download.svg +++ b/src/components/icon/assets/download.svg @@ -1,4 +1,4 @@ - - - + + + \ No newline at end of file From 943b6b3c775a88671c24683b0580f0c73fc261f4 Mon Sep 17 00:00:00 2001 From: miukimiu Date: Wed, 22 Apr 2020 19:31:26 +0100 Subject: [PATCH 4/4] Updating test --- src/components/icon/__snapshots__/icon.test.tsx.snap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index c31023d19ad..3b25b3ade22 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -1640,10 +1640,10 @@ exports[`EuiIcon props type download is rendered 1`] = ` xmlns="http://www.w3.org/2000/svg" > `;