Skip to content

Commit

Permalink
Add stop icons (transparent, filled). (#543)
Browse files Browse the repository at this point in the history
* Add stop icons (transparent, filled).

* Updated changelog.

* Update snapshots for dear life
  • Loading branch information
bevacqua authored Mar 20, 2018
1 parent c9207bf commit a555d65
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# [`master`](https://github.com/elastic/eui/tree/master)

No public interface changes since `0.0.31`.
- Added `stop` and `stopFilled` icons ([#543](https://github.com/elastic/eui/pull/543))

# [`0.0.31`](https://github.com/elastic/eui/tree/v0.0.31)

- Make `<EuiProgress>` TypeScript types more specific ([#518](https://github.com/elastic/eui/pull/518))
- Remove `font-smoothing` from our reset css for better text legibility ([#539](https://github.com/elastic/eui/pull/539))
- Made `<EuiProgress>` TypeScript types more specific ([#518](https://github.com/elastic/eui/pull/518))
- Removed `font-smoothing` from our reset css for better text legibility ([#539](https://github.com/elastic/eui/pull/539))

**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 @@ -96,6 +96,8 @@ const iconTypes = [
'starEmpty',
'starPlusFilled',
'stats',
'stop',
'stopFilled',
'string',
'tableOfContents',
'tear',
Expand Down
34 changes: 34 additions & 0 deletions src/components/icon/__snapshots__/icon.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3332,6 +3332,40 @@ exports[`EuiIcon renders type stats 1`] = `
</svg>
`;

exports[`EuiIcon renders type stop 1`] = `
<svg
class="euiIcon euiIcon--medium"
height="16"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M4 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm0 1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H4z"
fill-rule="evenodd"
/>
</svg>
`;

exports[`EuiIcon renders type stopFilled 1`] = `
<svg
class="euiIcon euiIcon--medium"
height="16"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<rect
fill-rule="evenodd"
height="12"
rx="2"
width="12"
x="2"
y="2"
/>
</svg>
`;

exports[`EuiIcon renders type string 1`] = `
<svg
class="euiIcon euiIcon--medium"
Expand Down
3 changes: 3 additions & 0 deletions src/components/icon/assets/stop.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/stop_filled.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.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ import sortUp from './assets/sort_up.svg';
import starEmpty from './assets/star_empty.svg';
import starPlusFilled from './assets/starPlusFilled.svg';
import stats from './assets/stats.svg';
import stop from './assets/stop.svg';
import stopFilled from './assets/stop_filled.svg';
import string from './assets/string.svg';
import tableOfContents from './assets/tableOfContents.svg';
import tear from './assets/tear.svg';
Expand Down Expand Up @@ -276,6 +278,8 @@ const typeToIconMap = {
starEmpty,
starPlusFilled,
stats,
stop,
stopFilled,
string,
tableOfContents,
tear,
Expand Down
2 changes: 2 additions & 0 deletions src/components/icon/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ declare module '@elastic/eui' {
| 'starEmpty'
| 'starPlusFilled'
| 'stats'
| 'stop'
| 'stopFilled'
| 'string'
| 'tableOfContents'
| 'tear'
Expand Down

0 comments on commit a555d65

Please sign in to comment.