From 3a257ad61f76d0115a1c4e40fd56e1f130c397da Mon Sep 17 00:00:00 2001 From: Cee Chen <549407+cee-chen@users.noreply.github.com> Date: Fri, 2 Feb 2024 09:34:54 -0800 Subject: [PATCH] [Emotion] Convert EuiSearchBar (#7490) --- changelogs/upcoming/7490.md | 3 + src/components/index.scss | 1 - .../__snapshots__/search_bar.test.tsx.snap | 10 +-- src/components/search_bar/_index.scss | 1 - src/components/search_bar/_search_bar.scss | 10 --- .../search_bar/search_bar.styles.ts | 33 +++++++ src/components/search_bar/search_bar.test.tsx | 42 ++++----- src/components/search_bar/search_bar.tsx | 90 +++++++++++-------- 8 files changed, 108 insertions(+), 82 deletions(-) create mode 100644 changelogs/upcoming/7490.md delete mode 100644 src/components/search_bar/_index.scss delete mode 100644 src/components/search_bar/_search_bar.scss create mode 100644 src/components/search_bar/search_bar.styles.ts diff --git a/changelogs/upcoming/7490.md b/changelogs/upcoming/7490.md new file mode 100644 index 00000000000..8ab119ee048 --- /dev/null +++ b/changelogs/upcoming/7490.md @@ -0,0 +1,3 @@ +**CSS-in-JS conversions** + +- Converted `EuiSearchBar` to Emotion diff --git a/src/components/index.scss b/src/components/index.scss index 89b68c2b2f9..251ea2bdb7d 100644 --- a/src/components/index.scss +++ b/src/components/index.scss @@ -8,6 +8,5 @@ @import 'markdown_editor/index'; @import 'tree_view/index'; @import 'side_nav/index'; -@import 'search_bar/index'; @import 'selectable/index'; @import 'table/index'; diff --git a/src/components/search_bar/__snapshots__/search_bar.test.tsx.snap b/src/components/search_bar/__snapshots__/search_bar.test.tsx.snap index 98f6fb63890..2b176ab4d9e 100644 --- a/src/components/search_bar/__snapshots__/search_bar.test.tsx.snap +++ b/src/components/search_bar/__snapshots__/search_bar.test.tsx.snap @@ -5,7 +5,7 @@ exports[`SearchBar render - box 1`] = ` class="euiFlexGroup emotion-euiFlexGroup-responsive-wrap-m-flexStart-center-row" >