From cc527f73dc12a7a4cc275d0895127b57f45f4b54 Mon Sep 17 00:00:00 2001 From: miukimiu Date: Wed, 5 Aug 2020 19:27:50 +0100 Subject: [PATCH 1/3] Added unlink glyph to EuiIcon --- CHANGELOG.md | 1 + src-docs/src/views/icon/icons.js | 1 + src/components/icon/assets/unlink.js | 18 ++++++++++++++++++ src/components/icon/assets/unlink.svg | 4 ++++ src/components/icon/icon.tsx | 1 + 5 files changed, 25 insertions(+) create mode 100644 src/components/icon/assets/unlink.js create mode 100644 src/components/icon/assets/unlink.svg diff --git a/CHANGELOG.md b/CHANGELOG.md index 663af513473..5714171925b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## [`master`](https://github.com/elastic/eui/tree/master) - Added icons for `appSearchApp` and `workplaceSearchApp` to `EuiIcon` ([#3859](https://github.com/elastic/eui/pull/3859)) +- Added `unlink` glyph to `EuiIcon` ([#3783](https://github.com/elastic/eui/pull/3783)) ## [`27.4.0`](https://github.com/elastic/eui/tree/v27.4.0) diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index 384ed3cc0dc..1dca84979f7 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -202,6 +202,7 @@ export const iconTypes = [ 'timeline', 'training', 'trash', + 'unlink', 'user', 'users', 'vector', diff --git a/src/components/icon/assets/unlink.js b/src/components/icon/assets/unlink.js new file mode 100644 index 00000000000..90c05850bd0 --- /dev/null +++ b/src/components/icon/assets/unlink.js @@ -0,0 +1,18 @@ +import React from 'react'; + +const EuiIconUnlink = ({ title, titleId, ...props }) => ( + + {title ? {title} : null} + + + +); + +export const icon = EuiIconUnlink; diff --git a/src/components/icon/assets/unlink.svg b/src/components/icon/assets/unlink.svg new file mode 100644 index 00000000000..6c88c117197 --- /dev/null +++ b/src/components/icon/assets/unlink.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/components/icon/icon.tsx b/src/components/icon/icon.tsx index 6bb69c97415..a1402d3564a 100644 --- a/src/components/icon/icon.tsx +++ b/src/components/icon/icon.tsx @@ -353,6 +353,7 @@ const typeToPathMap = { trash: 'trash', upgradeAssistantApp: 'app_upgrade_assistant', uptimeApp: 'app_uptime', + unlink: 'unlink', user: 'user', users: 'users', usersRolesApp: 'app_users_roles', From b547d1c90e55b920a95bdd0bdc3972150b6ba609 Mon Sep 17 00:00:00 2001 From: miukimiu Date: Wed, 5 Aug 2020 19:49:26 +0100 Subject: [PATCH 2/3] Snapshot --- .../icon/__snapshots__/icon.test.tsx.snap | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index a568292a847..244e2390e19 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -8580,6 +8580,27 @@ exports[`EuiIcon props type trash is rendered 1`] = ` `; +exports[`EuiIcon props type unlink is rendered 1`] = ` + +`; + exports[`EuiIcon props type upgradeAssistantApp is rendered 1`] = ` `; diff --git a/src/components/icon/assets/unlink.js b/src/components/icon/assets/unlink.js index 90c05850bd0..acd69e76745 100644 --- a/src/components/icon/assets/unlink.js +++ b/src/components/icon/assets/unlink.js @@ -10,8 +10,8 @@ const EuiIconUnlink = ({ title, titleId, ...props }) => ( aria-labelledby={titleId} {...props}> {title ? {title} : null} - - + + ); diff --git a/src/components/icon/assets/unlink.svg b/src/components/icon/assets/unlink.svg index 6c88c117197..ce00c5b2e65 100644 --- a/src/components/icon/assets/unlink.svg +++ b/src/components/icon/assets/unlink.svg @@ -1,4 +1,4 @@ - - + + \ No newline at end of file