From 65e26376df92bdef8bb9fad231b1a4accc3d043a Mon Sep 17 00:00:00 2001 From: Nancy Bhadiyadra Date: Wed, 26 May 2021 12:29:12 +0530 Subject: [PATCH 1/2] Updated snapshots --- CHANGELOG.md | 1 + .../__snapshots__/call_out.test.tsx.snap | 12 +++- src/components/call_out/call_out.tsx | 12 +++- .../form/__snapshots__/form.test.tsx.snap | 58 +++++++++++-------- 4 files changed, 54 insertions(+), 29 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6360b225615..470dbc9042f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ **Bug fixes** +- Fixed `EuiText` color of `EuiCallout` to `default`([#4816](https://github.com/elastic/eui/pull/4816)) - Fixed inconsistent width of `EuiRange` and `EuiDualRange` with custom tick values ([#4781](https://github.com/elastic/eui/pull/4781)) - Fixes browser freezing when `EuiDataGrid` is used together with `EuiFlyout` and the user clicks a cell ([4813](https://github.com/elastic/eui/pull/4813)) - Added `flex-shrink: 0` to `EuiTabs`, `EuiSpacer`, and `EuiImage` to fix possible shrunken heights ([#4793](https://github.com/elastic/eui/pull/4793)) diff --git a/src/components/call_out/__snapshots__/call_out.test.tsx.snap b/src/components/call_out/__snapshots__/call_out.test.tsx.snap index 12716d53977..78f3d9caf06 100644 --- a/src/components/call_out/__snapshots__/call_out.test.tsx.snap +++ b/src/components/call_out/__snapshots__/call_out.test.tsx.snap @@ -9,7 +9,11 @@ exports[`EuiCallOut is rendered 1`] = `
- Content +
+ Content +
`; @@ -102,7 +106,11 @@ exports[`EuiCallOut props title is rendered 1`] = `
- Content +
+ Content +
`; diff --git a/src/components/call_out/call_out.tsx b/src/components/call_out/call_out.tsx index b42a12f491e..bb03d3f935c 100644 --- a/src/components/call_out/call_out.tsx +++ b/src/components/call_out/call_out.tsx @@ -91,9 +91,17 @@ export const EuiCallOut = forwardRef( let optionalChildren; if (children && size === 's') { - optionalChildren = {children}; + optionalChildren = ( + + {children} + + ); } else if (children) { - optionalChildren = {children}; + optionalChildren = ( + + {children} + + ); } const H: any = heading ? `${heading}` : 'span'; diff --git a/src/components/form/__snapshots__/form.test.tsx.snap b/src/components/form/__snapshots__/form.test.tsx.snap index e0a618e5ccb..10cf353611b 100644 --- a/src/components/form/__snapshots__/form.test.tsx.snap +++ b/src/components/form/__snapshots__/form.test.tsx.snap @@ -65,22 +65,26 @@ exports[`EuiForm renders with error callout when isInvalid is "true" and has mul
-
    -
  • - - This is one error - -
  • -
  • - - This is another error - -
  • -
+
+
    +
  • + + This is one error + +
  • +
  • + + This is another error + +
  • +
+
@@ -110,15 +114,19 @@ exports[`EuiForm renders with error callout when isInvalid is "true" and has one
-
    -
  • - - This is one error - -
  • -
+
+
    +
  • + + This is one error + +
  • +
+
From b7a86aa631f71e8d2af67f0f59f457cb56aeb9e4 Mon Sep 17 00:00:00 2001 From: Caroline Horn <549577+cchaos@users.noreply.github.com> Date: Wed, 26 May 2021 09:27:51 -0400 Subject: [PATCH 2/2] CL - Add missing space --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 470dbc9042f..b09061b58fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ **Bug fixes** -- Fixed `EuiText` color of `EuiCallout` to `default`([#4816](https://github.com/elastic/eui/pull/4816)) +- Fixed `EuiText` color of `EuiCallout` to `default` ([#4816](https://github.com/elastic/eui/pull/4816)) - Fixed inconsistent width of `EuiRange` and `EuiDualRange` with custom tick values ([#4781](https://github.com/elastic/eui/pull/4781)) - Fixes browser freezing when `EuiDataGrid` is used together with `EuiFlyout` and the user clicks a cell ([4813](https://github.com/elastic/eui/pull/4813)) - Added `flex-shrink: 0` to `EuiTabs`, `EuiSpacer`, and `EuiImage` to fix possible shrunken heights ([#4793](https://github.com/elastic/eui/pull/4793))