Skip to content

Commit

Permalink
New symlink and submodule icons. (#1439)
Browse files Browse the repository at this point in the history
* new symlink and submodule icons.

* Updating changelog entry.

* Minor tweak to submodule icon.

* cleaning the test cache and updating the tests.
  • Loading branch information
daveyholler authored Jan 16, 2019
1 parent 99875ca commit 28b7ccb
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- Added `inputRef` prop to `EuiComboBox` ([#1433](https://github.com/elastic/eui/pull/1433))
- Added custom date string formatting for series charts crosshair overlay ([#1429](https://github.com/elastic/eui/pull/1429))
- Added new icons for `symlink` and `submodule` ([#1439](https://github.com/elastic/eui/pull/1439))

**Bug fixes**

Expand Down
2 changes: 2 additions & 0 deletions src-docs/src/views/icon/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ const iconTypes = [
'stopFilled',
'storage',
'string',
'submodule',
'symlink',
'tableOfContents',
'tag',
'tear',
Expand Down
34 changes: 34 additions & 0 deletions src/components/icon/__snapshots__/icon.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5484,6 +5484,40 @@ exports[`EuiIcon props type string is rendered 1`] = `
</svg>
`;

exports[`EuiIcon props type submodule is rendered 1`] = `
<svg
class="euiIcon euiIcon--medium"
fill="none"
focusable="false"
height="16"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
clip-rule="evenodd"
d="M6 2H1v12h3V7a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v1h4V4H7c-.621 0-1-.379-1-1V2zm10 6v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.25a.75.75 0 0 1 .75.75l-.004.206C6.99 2.317 6.974 3 7 3h8a1 1 0 0 1 1 1v4zm-1 1h-4a1 1 0 0 1-1-1V7H5v7h10V9zM2 4.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5zM6.5 9a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1h-2z"
/>
</svg>
`;

exports[`EuiIcon props type symlink is rendered 1`] = `
<svg
class="euiIcon euiIcon--medium"
fill="none"
focusable="false"
height="16"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
clip-rule="evenodd"
d="M10.8 0H2a1 1 0 0 0-1 1v8l1-1V1h8v3.5a.5.5 0 0 0 .5.5H14v10H2v-1a3.5 3.5 0 0 1 3.5-3.5H8V13l3-3-3-3v2.5H5.5A4.5 4.5 0 0 0 1 14v1a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4.429c0-.256-.098-.503-.274-.689l-3.2-3.428A1.002 1.002 0 0 0 10.8 0z"
/>
</svg>
`;

exports[`EuiIcon props type tableOfContents is rendered 1`] = `
<svg
class="euiIcon euiIcon--medium"
Expand Down
3 changes: 3 additions & 0 deletions src/components/icon/assets/submodule.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/components/icon/assets/symlink.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/components/icon/icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ import stop from './assets/stop.svg';
import stopFilled from './assets/stop_filled.svg';
import storage from './assets/storage.svg';
import string from './assets/string.svg';
import submodule from './assets/submodule.svg';
import symlink from './assets/symlink.svg';
import tableOfContents from './assets/tableOfContents.svg';
import tag from './assets/tag.svg';
import tear from './assets/tear.svg';
Expand Down Expand Up @@ -517,6 +519,8 @@ const typeToIconMap = {
stopFilled,
storage,
string,
submodule,
symlink,
tableOfContents,
tag,
tear,
Expand Down

0 comments on commit 28b7ccb

Please sign in to comment.