From c32d25e5d498de286815350a4823e872f9af964b Mon Sep 17 00:00:00 2001 From: Davey Holler Date: Wed, 23 Jan 2019 15:20:59 -0800 Subject: [PATCH] Code app icon (#1467) * Adding the code app icon * Fixing the fills on the svg to match EUI's pattern * Updating changelog * Update src/components/icon/assets/app_code.svg Co-Authored-By: daveyholler * Merging master. --- CHANGELOG.md | 2 ++ src-docs/src/views/icon/apps.js | 1 + .../icon/__snapshots__/icon.test.tsx.snap | 19 +++++++++++++++++++ src/components/icon/assets/app_code.svg | 7 +++++++ src/components/icon/icon.tsx | 2 ++ 5 files changed, 31 insertions(+) create mode 100644 src/components/icon/assets/app_code.svg diff --git a/CHANGELOG.md b/CHANGELOG.md index d2abe1ffc91..be88e7ded34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## [`master`](https://github.com/elastic/eui/tree/master) +- Added a new app icon for Code ([#1467](https://github.com/elastic/eui/pull/1467)) +No public interface changes since `6.6.0`. - Re-added EuiI18n, EuiI18nNumber, and EuiContext for localization ([#1466](https://github.com/elastic/eui/pull/1466)) - Set `type="button"` on accordion buttons ([#1468](https://github.com/elastic/eui/pull/1468)) diff --git a/src-docs/src/views/icon/apps.js b/src-docs/src/views/icon/apps.js index f6e8a0a842b..d3d00b7a919 100644 --- a/src-docs/src/views/icon/apps.js +++ b/src-docs/src/views/icon/apps.js @@ -14,6 +14,7 @@ const iconTypes = [ 'apmApp', 'auditbeatApp', 'canvasApp', + 'codeApp', 'consoleApp', 'crossClusterReplicationApp', 'dashboardApp', diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index f000989841c..7311fe92320 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -909,6 +909,25 @@ exports[`EuiIcon props type clock is rendered 1`] = ` `; +exports[`EuiIcon props type codeApp is rendered 1`] = ` + + + + +`; + exports[`EuiIcon props type compute is rendered 1`] = ` + + + + + + diff --git a/src/components/icon/icon.tsx b/src/components/icon/icon.tsx index c3593d116cb..7152d008c2d 100644 --- a/src/components/icon/icon.tsx +++ b/src/components/icon/icon.tsx @@ -26,6 +26,7 @@ import brush from './assets/brush.svg'; import bullseye from './assets/bullseye.svg'; import calendar from './assets/calendar.svg'; import canvasApp from './assets/app_canvas.svg'; +import codeApp from './assets/app_code.svg'; import check from './assets/check.svg'; import checkInCircleFilled from './assets/checkInCircleFilled.svg'; import clock from './assets/clock.svg'; @@ -320,6 +321,7 @@ const typeToIconMap = { bullseye, calendar, canvasApp, + codeApp, check, checkInCircleFilled, clock,