From 9e17bcffa14938057b96684ec008edb7223595cb Mon Sep 17 00:00:00 2001 From: Elizabet Oliveira Date: Thu, 23 Apr 2020 12:19:39 +0100 Subject: [PATCH] Add download glyph to EuiIcon (#3364) * Adding download glyph to EuiIcon * Updating changelog with PR number * Improving icon * Updating test --- 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 3fe44f20591..6760a15f7a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## [`master`](https://github.com/elastic/eui/tree/master) +- Added `download` glyph to `EuiIcon` ([#3364](https://github.com/elastic/eui/pull/3364)) - Applies `max-width: 100%` to `EuiPageBody` so inner flex-based items don't overflow their containers ([#3375](https://github.com/elastic/eui/pull/3375)) ## [`23.1.0`](https://github.com/elastic/eui/tree/v23.1.0) 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..3b25b3ade22 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`] = `