Skip to content

Commit

Permalink
Code app icon (elastic#1467)
Browse files Browse the repository at this point in the history
* 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 <daveyholler@gmail.com>

* Merging master.
  • Loading branch information
daveyholler authored Jan 23, 2019
1 parent 65e032b commit c32d25e
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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))

Expand Down
1 change: 1 addition & 0 deletions src-docs/src/views/icon/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const iconTypes = [
'apmApp',
'auditbeatApp',
'canvasApp',
'codeApp',
'consoleApp',
'crossClusterReplicationApp',
'dashboardApp',
Expand Down
19 changes: 19 additions & 0 deletions src/components/icon/__snapshots__/icon.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,25 @@ exports[`EuiIcon props type clock is rendered 1`] = `
</svg>
`;

exports[`EuiIcon props type codeApp is rendered 1`] = `
<svg
class="euiIcon euiIcon--medium euiIcon--app"
focusable="false"
height="32"
viewBox="0 0 32 32"
width="32"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M11.276 29l.594 2H0l7.621-14.29.811 2.73L3.333 29h7.943zM28.92 31l-4.987-16.598A16 16 0 0 0 8.688 3l1.8 6H8.4L6 1h2.607a18 18 0 0 1 17.241 12.828L31 31h-2.08z"
/>
<path
class="euiIcon__fillSecondary"
d="M12.037 14.02L16.492 29h6.827l-2.333-7.849a10 10 0 0 0-8.949-7.13zM9.35 12h2.05a12 12 0 0 1 11.503 8.581L26 31H15L9.35 12z"
/>
</svg>
`;

exports[`EuiIcon props type compute is rendered 1`] = `
<svg
class="euiIcon euiIcon--medium"
Expand Down
7 changes: 7 additions & 0 deletions src/components/icon/assets/app_code.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/components/icon/icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -320,6 +321,7 @@ const typeToIconMap = {
bullseye,
calendar,
canvasApp,
codeApp,
check,
checkInCircleFilled,
clock,
Expand Down

0 comments on commit c32d25e

Please sign in to comment.