From ab0ae39f0c189e1291dee1338de42a7fd68050bc Mon Sep 17 00:00:00 2001 From: Andrea Del Rio Date: Mon, 23 Dec 2019 16:05:12 -0800 Subject: [PATCH 1/4] added muted bell icon --- src-docs/src/views/icon/icons.js | 1 + src/components/icon/assets/bellMuted.js | 15 +++++++++++++++ src/components/icon/assets/bellMuted.svg | 3 +++ src/components/icon/icon.tsx | 1 + 4 files changed, 20 insertions(+) create mode 100644 src/components/icon/assets/bellMuted.js create mode 100644 src/components/icon/assets/bellMuted.svg diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index 3cffbcd17a4..8e40349190b 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -33,6 +33,7 @@ export const iconTypes = [ 'asterisk', 'beaker', 'bell', + 'bellMuted', 'bolt', 'boxesHorizontal', 'boxesVertical', diff --git a/src/components/icon/assets/bellMuted.js b/src/components/icon/assets/bellMuted.js new file mode 100644 index 00000000000..f9cfc5297f3 --- /dev/null +++ b/src/components/icon/assets/bellMuted.js @@ -0,0 +1,15 @@ +import React from 'react'; + +const EuiIconBellMuted = ({ title, ...props }) => ( + + {title} + + +); + +export const icon = EuiIconBellMuted; diff --git a/src/components/icon/assets/bellMuted.svg b/src/components/icon/assets/bellMuted.svg new file mode 100644 index 00000000000..3e7d2a49abb --- /dev/null +++ b/src/components/icon/assets/bellMuted.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/icon/icon.tsx b/src/components/icon/icon.tsx index 394558227a6..2f208f7bc39 100644 --- a/src/components/icon/icon.tsx +++ b/src/components/icon/icon.tsx @@ -34,6 +34,7 @@ const typeToPathMap = { auditbeatApp: 'app_auditbeat', beaker: 'beaker', bell: 'bell', + bellMuted: 'bellMuted', bolt: 'bolt', boxesHorizontal: 'boxes_horizontal', boxesVertical: 'boxes_vertical', From 189cdeaa8433bc846f3219715307c9cf89faef33 Mon Sep 17 00:00:00 2001 From: Andrea Del Rio Date: Mon, 23 Dec 2019 16:24:27 -0800 Subject: [PATCH 2/4] added cl entry --- CHANGELOG.md | 1 + .../icon/__snapshots__/icon.test.tsx.snap | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f1773902de..9683146fa9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - Added `nested` glyph to `EuiIcon` ([#2707](https://github.com/elastic/eui/pull/2707)) - Added `tableLayout` prop to `EuiTable`, `EuiBasicTable` and `EuiInMemoryTable` to provide the option of auto layout ([#2697](https://github.com/elastic/eui/pull/2697)) +- Added `bellMuted` glyph to `EuiIcon` ([#2714](https://github.com/elastic/eui/pull/2714)) **Bug fixes** diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index e046dfe8452..14d928e24a5 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -783,6 +783,24 @@ exports[`EuiIcon props type bell is rendered 1`] = ` `; +exports[`EuiIcon props type bellMuted is rendered 1`] = ` + +`; + exports[`EuiIcon props type bolt is rendered 1`] = ` `; diff --git a/src/components/icon/assets/bellSlash.js b/src/components/icon/assets/bellSlash.js index a464faa74e3..0f46377c365 100644 --- a/src/components/icon/assets/bellSlash.js +++ b/src/components/icon/assets/bellSlash.js @@ -8,10 +8,7 @@ const EuiIconBellSlash = ({ title, ...props }) => ( xmlns="http://www.w3.org/2000/svg" {...props}> {title} - + ); diff --git a/src/components/icon/assets/bellSlash.svg b/src/components/icon/assets/bellSlash.svg index 97edb276929..0d7029e1003 100644 --- a/src/components/icon/assets/bellSlash.svg +++ b/src/components/icon/assets/bellSlash.svg @@ -1,3 +1,3 @@ - +