diff --git a/CHANGELOG.md b/CHANGELOG.md index b46766cbf4d..5ab7e97d446 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - Update Elastic-Charts to version 13.0.0 and updated the theme object accordingly ([#2381](https://github.com/elastic/eui/pull/2381)) - Added new `EuiColorStops` component ([#2360](https://github.com/elastic/eui/pull/2360)) +- Added `currency` glyph to 'EuiIcon' ([#2398](https://github.com/elastic/eui/pull/2398)) **Bug fixes** diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index 18f926af996..2626da56c8e 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -55,6 +55,7 @@ const iconTypes = [ 'cross', 'crosshairs', 'crossInACircleFilled', + 'currency', 'cut', 'database', 'document', diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index c493f93fc0e..c68441bc805 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -1164,6 +1164,21 @@ exports[`EuiIcon props type crosshairs is rendered 1`] = ` `; +exports[`EuiIcon props type currency is rendered 1`] = ` + + + +`; + exports[`EuiIcon props type cut is rendered 1`] = ` ( + + + +); + +export const icon = EuiIconCurrency; diff --git a/src/components/icon/assets/currency.svg b/src/components/icon/assets/currency.svg new file mode 100644 index 00000000000..9682ce0cae4 --- /dev/null +++ b/src/components/icon/assets/currency.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/icon/icon.tsx b/src/components/icon/icon.tsx index 2bbd24dec00..2989736c85c 100644 --- a/src/components/icon/icon.tsx +++ b/src/components/icon/icon.tsx @@ -63,6 +63,7 @@ const typeToPathMap = { crossClusterReplicationApp: 'app_cross_cluster_replication', crosshairs: 'crosshairs', crossInACircleFilled: 'crossInACircleFilled', + currency: 'currency', cut: 'cut', dashboardApp: 'app_dashboard', database: 'database',