Skip to content

Commit e4b8c24

Browse files
authored
Fixes: Warning: validateDOMNesting(...): <p> cannot appear as a descendant of <p>. (rjsf-team#4117)
1 parent af8932a commit e4b8c24

File tree

4 files changed

+106
-129
lines changed

4 files changed

+106
-129
lines changed

packages/chakra-ui/src/DescriptionField/DescriptionField.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function DescriptionField<
1212

1313
if (typeof description === 'string') {
1414
return (
15-
<Text id={id} mt={2} mb={4}>
15+
<Text as='sup' fontSize='md' id={id}>
1616
{description}
1717
</Text>
1818
);

0 commit comments

Comments
 (0)