diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e89150316a..6f10ada42c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Added `external` prop to `EuiLink` ([#2442](https://github.com/elastic/eui/pull/2442)) - Added disabled state to `EuiBadge` ([#2440](https://github.com/elastic/eui/pull/2440)) - Changed `EuiLink` to appear non interactive when passed the `disabled` prop and an `onClick` handler ([#2423](https://github.com/elastic/eui/pull/2423)) +- Added `minimize` glyph to `EuiIcon` ([#2457](https://github.com/elastic/eui/pull/2457)) **Bug fixes** diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index f96b047a872..9b788b9c937 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -122,6 +122,7 @@ const iconTypes = [ 'merge', 'menuLeft', 'menuRight', + 'minimize', 'minusInCircle', 'minusInCircleFilled', 'moon', diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index 3d4da13bd07..ccd3d6783e6 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -4955,6 +4955,21 @@ exports[`EuiIcon props type metricsApp is rendered 1`] = ` `; +exports[`EuiIcon props type minimize is rendered 1`] = ` + + + +`; + exports[`EuiIcon props type minusInCircle is rendered 1`] = ` ( + + + +); + +export const icon = EuiIconMinimize; diff --git a/src/components/icon/assets/minimize.svg b/src/components/icon/assets/minimize.svg new file mode 100644 index 00000000000..9d5710ff442 --- /dev/null +++ b/src/components/icon/assets/minimize.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/icon/icon.tsx b/src/components/icon/icon.tsx index 3a092cee6e3..0b4697b40e1 100644 --- a/src/components/icon/icon.tsx +++ b/src/components/icon/icon.tsx @@ -232,6 +232,7 @@ const typeToPathMap = { menuRight: 'menuRight', merge: 'merge', metricbeatApp: 'app_metricbeat', + minimize: 'minimize', minusInCircle: 'minus_in_circle', minusInCircleFilled: 'minus_in_circle_filled', monitoringApp: 'app_monitoring',