diff --git a/CHANGELOG.md b/CHANGELOG.md index 91264f0b3e3..b3cab0d4df9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## [`master`](https://github.com/elastic/eui/tree/master) - Changed `EuiNavDrawerFlyout` title from `h5` to `div` ([#2040](https://github.com/elastic/eui/pull/2040)) +- Added `magnifyWithMinus` and `magnifyWithPlus` glyphs to `EuiIcon` ([2056](https://github.com/elastic/eui/pull/2056)) **Bug fixes** diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index fb567f8dc06..960b1eac6eb 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -122,6 +122,8 @@ const iconTypes = [ 'logstashInput', 'logstashOutput', 'logstashQueue', + 'magnifyWithMinus', + 'magnifyWithPlus', 'magnet', 'mapMarker', 'memory', diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index 33271e7d2f4..e36409fdf27 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -4752,6 +4752,36 @@ exports[`EuiIcon props type magnet is rendered 1`] = ` `; +exports[`EuiIcon props type magnifyWithMinus is rendered 1`] = ` + + + +`; + +exports[`EuiIcon props type magnifyWithPlus is rendered 1`] = ` + + + +`; + exports[`EuiIcon props type managementApp is rendered 1`] = ` ( + + + +); + +export const icon = EuiIconMagnifyWithMinus; diff --git a/src/components/icon/assets/magnifyWithMinus.svg b/src/components/icon/assets/magnifyWithMinus.svg new file mode 100644 index 00000000000..3ab09c5aa8f --- /dev/null +++ b/src/components/icon/assets/magnifyWithMinus.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/icon/assets/magnifyWithPlus.js b/src/components/icon/assets/magnifyWithPlus.js new file mode 100644 index 00000000000..6b5a86d93e0 --- /dev/null +++ b/src/components/icon/assets/magnifyWithPlus.js @@ -0,0 +1,14 @@ +import React from 'react'; + +const EuiIconMagnifyWithPlus = props => ( + + + +); + +export const icon = EuiIconMagnifyWithPlus; diff --git a/src/components/icon/assets/magnifyWithPlus.svg b/src/components/icon/assets/magnifyWithPlus.svg new file mode 100644 index 00000000000..d4eef38b0fc --- /dev/null +++ b/src/components/icon/assets/magnifyWithPlus.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/icon/icon.tsx b/src/components/icon/icon.tsx index 3ca3a1def28..bb3240c0900 100644 --- a/src/components/icon/icon.tsx +++ b/src/components/icon/icon.tsx @@ -198,6 +198,8 @@ const typeToPathMap = { logstashQueue: 'logstash_queue', machineLearningApp: 'app_ml', magnet: 'magnet', + magnifyWithMinus: 'magnifyWithMinus', + magnifyWithPlus: 'magnifyWithPlus', managementApp: 'app_management', mapMarker: 'map_marker', memory: 'memory',