From b7fa0259bd25f4b94740a20e304478849c411f6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Gonz=C3=A1lez?= Date: Thu, 1 Feb 2024 09:51:00 +0100 Subject: [PATCH 1/5] Index icon --- src-docs/src/views/icon/icons.js | 1 + .../icon/__snapshots__/icon.test.tsx.snap | 18 ++++++++++ src/components/icon/assets/index.tsx | 34 +++++++++++++++++++ src/components/icon/icon_map.ts | 1 + src/components/icon/svgs/index.svg | 3 ++ 5 files changed, 57 insertions(+) create mode 100644 src/components/icon/assets/index.tsx create mode 100644 src/components/icon/svgs/index.svg diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index 25f46dec881..aced767e864 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -123,6 +123,7 @@ export const iconTypes = [ 'iInCircle', 'image', 'importAction', + 'index', 'indexClose', 'indexEdit', 'indexFlush', diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index 36ca5fd44bb..0cb58d98b01 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -3819,6 +3819,24 @@ exports[`EuiIcon props type importAction is rendered 1`] = ` `; +exports[`EuiIcon props type index is rendered 1`] = ` + +`; + exports[`EuiIcon props type indexClose is rendered 1`] = ` `; diff --git a/src/components/icon/assets/index.tsx b/src/components/icon/assets/index.tsx index c5073d7a162..9dfa5e2b90c 100644 --- a/src/components/icon/assets/index.tsx +++ b/src/components/icon/assets/index.tsx @@ -28,7 +28,7 @@ const EuiIconIndex = ({ {...props} > {title ? {title} : null} - + ); export const icon = EuiIconIndex; diff --git a/src/components/icon/svgs/index.svg b/src/components/icon/svgs/index.svg index 91c2355f462..65259b99e15 100644 --- a/src/components/icon/svgs/index.svg +++ b/src/components/icon/svgs/index.svg @@ -1,3 +1,3 @@ - - + + \ No newline at end of file From eac6afbf3763b172a3af765122727a0bdb7f1e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Gonz=C3=A1lez?= Date: Wed, 7 Feb 2024 16:39:26 +0100 Subject: [PATCH 4/5] Fixing width and viewBox to 16px --- src/components/icon/__snapshots__/icon.test.tsx.snap | 4 ++-- src/components/icon/assets/index.tsx | 4 ++-- src/components/icon/svgs/index.svg | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index 43fcb62b895..1f9fbd39fcb 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -3827,8 +3827,8 @@ exports[`EuiIcon props type index is rendered 1`] = ` data-is-loaded="true" height="16" role="img" - viewBox="0 0 17 16" - width="17" + viewBox="0 0 16 16" + width="16" xmlns="http://www.w3.org/2000/svg" > & SVGRProps) => ( diff --git a/src/components/icon/svgs/index.svg b/src/components/icon/svgs/index.svg index 65259b99e15..6af8b7e92af 100644 --- a/src/components/icon/svgs/index.svg +++ b/src/components/icon/svgs/index.svg @@ -1,3 +1,3 @@ - + \ No newline at end of file From 267c45a27f6393904988cd8a8a9626f3e5771443 Mon Sep 17 00:00:00 2001 From: Cee Chen <549407+cee-chen@users.noreply.github.com> Date: Thu, 8 Feb 2024 10:50:03 -0800 Subject: [PATCH 5/5] changelog copy --- changelogs/upcoming/7498.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/upcoming/7498.md b/changelogs/upcoming/7498.md index 3bd69110179..80cbd1217e1 100644 --- a/changelogs/upcoming/7498.md +++ b/changelogs/upcoming/7498.md @@ -1 +1 @@ -- Added index icon \ No newline at end of file +- Added `index` glyph to `EuiIcon` \ No newline at end of file