diff --git a/packages/eui/.loki/reference/chrome_desktop_Forms_EuiColorPicker_EuiColorPicker_Inline_With_All_Elements.png b/packages/eui/.loki/reference/chrome_desktop_Forms_EuiColorPicker_EuiColorPicker_Inline_With_All_Elements.png new file mode 100644 index 00000000000..3172f31672b Binary files /dev/null and b/packages/eui/.loki/reference/chrome_desktop_Forms_EuiColorPicker_EuiColorPicker_Inline_With_All_Elements.png differ diff --git a/packages/eui/.loki/reference/chrome_desktop_Forms_EuiColorPicker_EuiColorPicker_Playground.png b/packages/eui/.loki/reference/chrome_desktop_Forms_EuiColorPicker_EuiColorPicker_Playground.png index d1c8044163d..520c59ee07a 100644 Binary files a/packages/eui/.loki/reference/chrome_desktop_Forms_EuiColorPicker_EuiColorPicker_Playground.png and b/packages/eui/.loki/reference/chrome_desktop_Forms_EuiColorPicker_EuiColorPicker_Playground.png differ diff --git a/packages/eui/.loki/reference/chrome_mobile_Forms_EuiColorPicker_EuiColorPicker_Inline_With_All_Elements.png b/packages/eui/.loki/reference/chrome_mobile_Forms_EuiColorPicker_EuiColorPicker_Inline_With_All_Elements.png new file mode 100644 index 00000000000..2e5b5827ff8 Binary files /dev/null and b/packages/eui/.loki/reference/chrome_mobile_Forms_EuiColorPicker_EuiColorPicker_Inline_With_All_Elements.png differ diff --git a/packages/eui/.loki/reference/chrome_mobile_Forms_EuiColorPicker_EuiColorPicker_Playground.png b/packages/eui/.loki/reference/chrome_mobile_Forms_EuiColorPicker_EuiColorPicker_Playground.png index b206566d572..5856748f0fe 100644 Binary files a/packages/eui/.loki/reference/chrome_mobile_Forms_EuiColorPicker_EuiColorPicker_Playground.png and b/packages/eui/.loki/reference/chrome_mobile_Forms_EuiColorPicker_EuiColorPicker_Playground.png differ diff --git a/packages/eui/changelogs/upcoming/7845.md b/packages/eui/changelogs/upcoming/7845.md new file mode 100644 index 00000000000..a7e6062fc56 --- /dev/null +++ b/packages/eui/changelogs/upcoming/7845.md @@ -0,0 +1,3 @@ +**CSS-in-JS conversions** + +- Converted `EuiColorPicker` to Emotion; Removed `$euiColorPickerWidth` 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 371dea2b8a0..940d83bdcdc 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 @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`renders EuiColorPicker 1`] = ` +exports[`EuiColorPicker color empty string 1`] = `
@@ -19,18 +19,19 @@ exports[`renders EuiColorPicker 1`] = `
`; -exports[`renders EuiColorPicker with a clearable input 1`] = ` +exports[`EuiColorPicker color null 1`] = `
@@ -69,32 +70,23 @@ exports[`renders EuiColorPicker with a clearable input 1`] = `
- @@ -110,7 +102,7 @@ exports[`renders EuiColorPicker with a clearable input 1`] = `
`; -exports[`renders EuiColorPicker with a color swatch when color is defined 1`] = ` +exports[`EuiColorPicker color valid string 1`] = `
@@ -124,7 +116,7 @@ exports[`renders EuiColorPicker with a color swatch when color is defined 1`] = class="euiFormControlLayoutIcons euiFormControlLayoutIcons--left euiFormControlLayoutIcons--absolute" >