diff --git a/CHANGELOG.md b/CHANGELOG.md index 8af3bfb09fe..aa6867e0de9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Converted tool tip components to TypeScript ([#2013](https://github.com/elastic/eui/pull/2013)) - Converted `EuiCopy` to TypeScript ([#2016](https://github.com/elastic/eui/pull/2016)) - Convert badge and token components to TypeScript ([#2026](https://github.com/elastic/eui/pull/2026)) +- Added `magnet` glyph to `EuiIcon` ([2010](https://github.com/elastic/eui/pull/2010)) - Changed `logoAWS` SVG in `EuiIcon` to work better in dark mode ([#2036](https://github.com/elastic/eui/pull/2036)) **Bug fixes** diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index 4e1d0fbab93..fb567f8dc06 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -122,6 +122,7 @@ const iconTypes = [ 'logstashInput', 'logstashOutput', 'logstashQueue', + 'magnet', 'mapMarker', 'memory', 'merge', diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index 7fc8fdec4a2..33271e7d2f4 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -4737,6 +4737,21 @@ exports[`EuiIcon props type machineLearningApp is rendered 1`] = ` `; +exports[`EuiIcon props type magnet is rendered 1`] = ` + + + +`; + exports[`EuiIcon props type managementApp is rendered 1`] = ` ( + + + +); + +export const icon = EuiIconMagnet; diff --git a/src/components/icon/assets/magnet.svg b/src/components/icon/assets/magnet.svg new file mode 100644 index 00000000000..b036ba77e12 --- /dev/null +++ b/src/components/icon/assets/magnet.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/icon/icon.tsx b/src/components/icon/icon.tsx index 0bf2028e6d0..3ca3a1def28 100644 --- a/src/components/icon/icon.tsx +++ b/src/components/icon/icon.tsx @@ -197,6 +197,7 @@ const typeToPathMap = { logstashOutput: 'logstash_output', logstashQueue: 'logstash_queue', machineLearningApp: 'app_ml', + magnet: 'magnet', managementApp: 'app_management', mapMarker: 'map_marker', memory: 'memory',