We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5c88192 + 16a3dad commit 8006a13Copy full SHA for 8006a13
src/components/Glossary/GlossaryDefinition/index.tsx
@@ -40,7 +40,13 @@ const GlossaryDefinition = ({
40
transform={components}
41
/>
42
</OldHeading>
43
- <Text {...textStyles}>
+ {/**
44
+ * `as="span"` prevents hydration warnings for strings that contain
45
+ * elements that cannot be nested inside `p` tags, like `ul` tags
46
+ * (found in some Glossary definition).
47
+ * TODO: Develop a better solution to handle this case.
48
+ */}
49
+ <Text as="span" {...textStyles}>
50
<Translation
51
id={term + "-definition"}
52
options={options}
0 commit comments