diff --git a/packages/eui/.loki/reference/chrome_desktop_Forms_EuiForm_Error.png b/packages/eui/.loki/reference/chrome_desktop_Forms_EuiForm_Error.png index 641a82d3e7d..44dc779ab3e 100644 Binary files a/packages/eui/.loki/reference/chrome_desktop_Forms_EuiForm_Error.png and b/packages/eui/.loki/reference/chrome_desktop_Forms_EuiForm_Error.png differ diff --git a/packages/eui/.loki/reference/chrome_desktop_Forms_EuiForm_EuiFormRow_Subcomponents_EuiFormErrorText_Playground.png b/packages/eui/.loki/reference/chrome_desktop_Forms_EuiForm_EuiFormRow_Subcomponents_EuiFormErrorText_Playground.png index 35654f6e8fa..d5d3c96d2b2 100644 Binary files a/packages/eui/.loki/reference/chrome_desktop_Forms_EuiForm_EuiFormRow_Subcomponents_EuiFormErrorText_Playground.png and b/packages/eui/.loki/reference/chrome_desktop_Forms_EuiForm_EuiFormRow_Subcomponents_EuiFormErrorText_Playground.png differ diff --git a/packages/eui/.loki/reference/chrome_desktop_Forms_EuiForm_EuiFormRow_Subcomponents_EuiFormHelpText_Playground.png b/packages/eui/.loki/reference/chrome_desktop_Forms_EuiForm_EuiFormRow_Subcomponents_EuiFormHelpText_Playground.png index 665684f717c..4fdf4e693dc 100644 Binary files a/packages/eui/.loki/reference/chrome_desktop_Forms_EuiForm_EuiFormRow_Subcomponents_EuiFormHelpText_Playground.png and b/packages/eui/.loki/reference/chrome_desktop_Forms_EuiForm_EuiFormRow_Subcomponents_EuiFormHelpText_Playground.png differ diff --git a/packages/eui/.loki/reference/chrome_mobile_Forms_EuiForm_Error.png b/packages/eui/.loki/reference/chrome_mobile_Forms_EuiForm_Error.png index 6931b769978..1921fd64987 100644 Binary files a/packages/eui/.loki/reference/chrome_mobile_Forms_EuiForm_Error.png and b/packages/eui/.loki/reference/chrome_mobile_Forms_EuiForm_Error.png differ diff --git a/packages/eui/.loki/reference/chrome_mobile_Forms_EuiForm_EuiFormRow_Subcomponents_EuiFormErrorText_Playground.png b/packages/eui/.loki/reference/chrome_mobile_Forms_EuiForm_EuiFormRow_Subcomponents_EuiFormErrorText_Playground.png index 61343ce82ab..a0235bb6357 100644 Binary files a/packages/eui/.loki/reference/chrome_mobile_Forms_EuiForm_EuiFormRow_Subcomponents_EuiFormErrorText_Playground.png and b/packages/eui/.loki/reference/chrome_mobile_Forms_EuiForm_EuiFormRow_Subcomponents_EuiFormErrorText_Playground.png differ diff --git a/packages/eui/.loki/reference/chrome_mobile_Forms_EuiForm_EuiFormRow_Subcomponents_EuiFormHelpText_Playground.png b/packages/eui/.loki/reference/chrome_mobile_Forms_EuiForm_EuiFormRow_Subcomponents_EuiFormHelpText_Playground.png index 83db9abe8e8..9fd1bdee25b 100644 Binary files a/packages/eui/.loki/reference/chrome_mobile_Forms_EuiForm_EuiFormRow_Subcomponents_EuiFormHelpText_Playground.png and b/packages/eui/.loki/reference/chrome_mobile_Forms_EuiForm_EuiFormRow_Subcomponents_EuiFormHelpText_Playground.png differ diff --git a/packages/eui/changelogs/upcoming/7966.md b/packages/eui/changelogs/upcoming/7966.md new file mode 100644 index 00000000000..ecdf93a80c9 --- /dev/null +++ b/packages/eui/changelogs/upcoming/7966.md @@ -0,0 +1,3 @@ +**CSS-in-JS conversions** + +- Converted `EuiForm`, `EuiFormHelpText`, and `EuiFormErrorText` to Emotion diff --git a/packages/eui/src/components/form/__snapshots__/form.test.tsx.snap b/packages/eui/src/components/form/__snapshots__/form.test.tsx.snap index f0300518fb9..104cad69ce9 100644 --- a/packages/eui/src/components/form/__snapshots__/form.test.tsx.snap +++ b/packages/eui/src/components/form/__snapshots__/form.test.tsx.snap @@ -34,6 +34,9 @@ exports[`EuiForm renders with error callout when isInvalid is "true" 1`] = ` Please address the highlighted errors.
+ `; @@ -78,6 +81,9 @@ exports[`EuiForm renders with error callout when isInvalid is "true" and has mul + `; @@ -115,6 +121,9 @@ exports[`EuiForm renders with error callout when isInvalid is "true" and has one + `; diff --git a/packages/eui/src/components/form/_form.scss b/packages/eui/src/components/form/_form.scss deleted file mode 100644 index 087f4efcb57..00000000000 --- a/packages/eui/src/components/form/_form.scss +++ /dev/null @@ -1,8 +0,0 @@ -.euiForm__error { - @include euiFontSizeS; - list-style: disc; -} - -.euiForm__errors { - margin-bottom: $euiSize; -} diff --git a/packages/eui/src/components/form/_index.scss b/packages/eui/src/components/form/_index.scss index 226d12a5be8..a2f82046dd3 100644 --- a/packages/eui/src/components/form/_index.scss +++ b/packages/eui/src/components/form/_index.scss @@ -1,8 +1,5 @@ @import 'checkbox/index'; -@import 'form'; -@import 'form_error_text/index'; @import 'form_fieldset/index'; -@import 'form_help_text/index'; @import 'form_label/index'; @import 'form_row/index'; @import 'radio/index'; diff --git a/packages/eui/src/components/form/described_form_group/__snapshots__/described_form_group.test.tsx.snap b/packages/eui/src/components/form/described_form_group/__snapshots__/described_form_group.test.tsx.snap index 0d938a95aa5..19e7eea0f8c 100644 --- a/packages/eui/src/components/form/described_form_group/__snapshots__/described_form_group.test.tsx.snap +++ b/packages/eui/src/components/form/described_form_group/__snapshots__/described_form_group.test.tsx.snap @@ -324,20 +324,20 @@ exports[`EuiDescribedFormGroup ties together parts for accessibility 1`] = ` />