From 38b92acef7eacf2dd161b2794a562e23382704b5 Mon Sep 17 00:00:00 2001
From: Cee Chen <549407+cee-chen@users.noreply.github.com>
Date: Wed, 26 Jun 2024 08:08:53 -0700
Subject: [PATCH] [Emotion] Convert EuiColorPickerSwatch (#7853)
---
packages/eui/changelogs/upcoming/7853.md | 3 ++
.../__snapshots__/color_picker.test.tsx.snap | 20 ++++----
.../color_picker_swatch.test.tsx.snap | 2 +-
.../color_picker/_color_picker_swatch.scss | 18 --------
.../src/components/color_picker/_index.scss | 1 -
.../color_picker_swatch.styles.ts | 46 +++++++++++++++++++
.../color_picker/color_picker_swatch.test.tsx | 3 ++
.../color_picker/color_picker_swatch.tsx | 8 +++-
8 files changed, 70 insertions(+), 31 deletions(-)
create mode 100644 packages/eui/changelogs/upcoming/7853.md
delete mode 100644 packages/eui/src/components/color_picker/_color_picker_swatch.scss
create mode 100644 packages/eui/src/components/color_picker/color_picker_swatch.styles.ts
diff --git a/packages/eui/changelogs/upcoming/7853.md b/packages/eui/changelogs/upcoming/7853.md
new file mode 100644
index 00000000000..f2cf7ab7f5f
--- /dev/null
+++ b/packages/eui/changelogs/upcoming/7853.md
@@ -0,0 +1,3 @@
+**CSS-in-JS conversions**
+
+- Converted `EuiColorPickerSwatch` to Emotion
diff --git a/packages/eui/src/components/color_picker/__snapshots__/color_picker.test.tsx.snap b/packages/eui/src/components/color_picker/__snapshots__/color_picker.test.tsx.snap
index 940d83bdcdc..cb97aede825 100644
--- a/packages/eui/src/components/color_picker/__snapshots__/color_picker.test.tsx.snap
+++ b/packages/eui/src/components/color_picker/__snapshots__/color_picker.test.tsx.snap
@@ -359,7 +359,7 @@ exports[`EuiColorPicker inline 1`] = `
@@ -367,7 +367,7 @@ exports[`EuiColorPicker inline 1`] = `
@@ -375,7 +375,7 @@ exports[`EuiColorPicker inline 1`] = `
@@ -383,7 +383,7 @@ exports[`EuiColorPicker inline 1`] = `
@@ -391,7 +391,7 @@ exports[`EuiColorPicker inline 1`] = `
@@ -399,7 +399,7 @@ exports[`EuiColorPicker inline 1`] = `
@@ -407,7 +407,7 @@ exports[`EuiColorPicker inline 1`] = `
@@ -415,7 +415,7 @@ exports[`EuiColorPicker inline 1`] = `
@@ -423,7 +423,7 @@ exports[`EuiColorPicker inline 1`] = `
@@ -431,7 +431,7 @@ exports[`EuiColorPicker inline 1`] = `
diff --git a/packages/eui/src/components/color_picker/__snapshots__/color_picker_swatch.test.tsx.snap b/packages/eui/src/components/color_picker/__snapshots__/color_picker_swatch.test.tsx.snap
index daf72f20f11..847c458fcb3 100644
--- a/packages/eui/src/components/color_picker/__snapshots__/color_picker_swatch.test.tsx.snap
+++ b/packages/eui/src/components/color_picker/__snapshots__/color_picker_swatch.test.tsx.snap
@@ -3,7 +3,7 @@
exports[`EuiColorPickerSwatch is rendered 1`] = `