From 271dfb3ab9364536406a3ff2d7a91b711d7f9cad Mon Sep 17 00:00:00 2001
From: Oren Forer cannot appear as
a descendant of .
---
.../src/DescriptionField/DescriptionField.tsx | 2 +-
.../test/__snapshots__/Array.test.tsx.snap | 139 ++++++++----------
.../test/__snapshots__/Form.test.tsx.snap | 14 +-
.../test/__snapshots__/Object.test.tsx.snap | 80 +++++-----
4 files changed, 106 insertions(+), 129 deletions(-)
diff --git a/packages/chakra-ui/src/DescriptionField/DescriptionField.tsx b/packages/chakra-ui/src/DescriptionField/DescriptionField.tsx
index 1596fc2325..3d998dbc62 100644
--- a/packages/chakra-ui/src/DescriptionField/DescriptionField.tsx
+++ b/packages/chakra-ui/src/DescriptionField/DescriptionField.tsx
@@ -12,7 +12,7 @@ export default function DescriptionField<
if (typeof description === 'string') {
return (
-
a test description
-
a test description
-
-
a test item description
-
-
a test item description
-
-
a test description
-
a test description -
+-
a test item description -
+-
a test item description -
+ @@ -3035,8 +3031,7 @@ exports[`with title and description from both array 1`] = ` } .emotion-5 { - margin-top: 2px; - margin-bottom: 4px; + font-size: md; } .emotion-6 { @@ -3140,12 +3135,12 @@ exports[`with title and description from both array 1`] = ` className="chakra-divider emotion-4" /> -a fancier description -
+a fancier description -
+-
a fancier item description -
+-
a fancier item description -
+ @@ -3964,8 +3958,7 @@ exports[`with title and description from both checkboxes 1`] = ` } .emotion-16 { - margin-top: 2px; - margin-bottom: 4px; + font-size: md; } .emotion-17 { @@ -4116,12 +4109,12 @@ exports[`with title and description from both checkboxes 1`] = `-
a fancier description -
+ @@ -4152,8 +4145,7 @@ exports[`with title and description from both fixed array 1`] = ` } .emotion-5 { - margin-top: 2px; - margin-bottom: 4px; + font-size: md; } .emotion-6 { @@ -4264,12 +4256,12 @@ exports[`with title and description from both fixed array 1`] = ` className="chakra-divider emotion-4" /> -a fancier description -
+-
a fancier item description -
+-
a fancier item description -
+ @@ -4435,8 +4427,7 @@ exports[`with title and description from uiSchema array 1`] = ` } .emotion-5 { - margin-top: 2px; - margin-bottom: 4px; + font-size: md; } .emotion-6 { @@ -4540,12 +4531,12 @@ exports[`with title and description from uiSchema array 1`] = ` className="chakra-divider emotion-4" /> -a fancier description -
+a fancier description -
+-
a fancier item description -
+-
a fancier item description -
+ @@ -5364,8 +5354,7 @@ exports[`with title and description from uiSchema checkboxes 1`] = ` } .emotion-16 { - margin-top: 2px; - margin-bottom: 4px; + font-size: md; } .emotion-17 { @@ -5516,12 +5505,12 @@ exports[`with title and description from uiSchema checkboxes 1`] = `-
a fancier description -
+ @@ -5552,8 +5541,7 @@ exports[`with title and description from uiSchema fixed array 1`] = ` } .emotion-5 { - margin-top: 2px; - margin-bottom: 4px; + font-size: md; } .emotion-6 { @@ -5664,12 +5652,12 @@ exports[`with title and description from uiSchema fixed array 1`] = ` className="chakra-divider emotion-4" /> -a fancier description -
+-
a fancier item description -
+-
a fancier item description -
+ @@ -6639,8 +6627,7 @@ exports[`with title and description with global label off checkboxes 1`] = ` } .emotion-16 { - margin-top: 2px; - margin-bottom: 4px; + font-size: md; } .emotion-17 { @@ -6791,12 +6778,12 @@ exports[`with title and description with global label off checkboxes 1`] = `-
a test description -
+ diff --git a/packages/chakra-ui/test/__snapshots__/Form.test.tsx.snap b/packages/chakra-ui/test/__snapshots__/Form.test.tsx.snap index 11bd50400e..783e92b019 100644 --- a/packages/chakra-ui/test/__snapshots__/Form.test.tsx.snap +++ b/packages/chakra-ui/test/__snapshots__/Form.test.tsx.snap @@ -709,8 +709,7 @@ exports[`single fields field with description 1`] = ` } .emotion-8 { - margin-top: 2px; - margin-bottom: 4px; + font-size: md; } .emotion-9 { @@ -803,12 +802,12 @@ exports[`single fields field with description 1`] = `-
some description -
+ @@ -851,8 +850,7 @@ exports[`single fields field with description in uiSchema 1`] = ` } .emotion-8 { - margin-top: 2px; - margin-bottom: 4px; + font-size: md; } .emotion-9 { @@ -945,12 +943,12 @@ exports[`single fields field with description in uiSchema 1`] = `-
some other description -
+ diff --git a/packages/chakra-ui/test/__snapshots__/Object.test.tsx.snap b/packages/chakra-ui/test/__snapshots__/Object.test.tsx.snap index b4ae132afc..691d5ea16b 100644 --- a/packages/chakra-ui/test/__snapshots__/Object.test.tsx.snap +++ b/packages/chakra-ui/test/__snapshots__/Object.test.tsx.snap @@ -736,8 +736,7 @@ exports[`object fields with title and description additionalProperties 1`] = ` } .emotion-4 { - margin-top: 2px; - margin-bottom: 4px; + font-size: md; } .emotion-5 { @@ -884,12 +883,12 @@ exports[`object fields with title and description additionalProperties 1`] = ` className="chakra-divider emotion-3" /> -a test description -
+a fancier description -
+a fancier description -
+-
a fancier item A description -
+-
a fancier item B description -
+ @@ -1588,8 +1585,7 @@ exports[`object fields with title and description from uiSchema additionalProper } .emotion-4 { - margin-top: 2px; - margin-bottom: 4px; + font-size: md; } .emotion-5 { @@ -1736,12 +1732,12 @@ exports[`object fields with title and description from uiSchema additionalProper className="chakra-divider emotion-3" /> -a fancier description -
+a fancier description -
+-
a fancier item A description -
+-
a fancier item B description -
+ @@ -2126,8 +2121,7 @@ exports[`object fields with title and description from uiSchema show add button } .emotion-4 { - margin-top: 2px; - margin-bottom: 4px; + font-size: md; } .emotion-5 { @@ -2274,12 +2268,12 @@ exports[`object fields with title and description from uiSchema show add button className="chakra-divider emotion-3" /> -a fancier description -
+a test description -
+-
A description -
+-
B description -
+ @@ -2664,8 +2657,7 @@ exports[`object fields with title and description show add button and fields if } .emotion-4 { - margin-top: 2px; - margin-bottom: 4px; + font-size: md; } .emotion-5 { @@ -2812,12 +2804,12 @@ exports[`object fields with title and description show add button and fields if className="chakra-divider emotion-3" /> -a test description -
+