Closed g-miranda closed 2 years ago
Hi @g-miranda, thanks for the issue. I've created #735 to fix this, however I would recommend you to use the <Text>
component because it gives you more control over the rendered element through as
prop.
<Text variant='body' as='p'>
Some <Text variant='small' as='small'>text</Text>
<Text>
Hi @mayank99. Thank you for the suggestion, I'll do that.
Describe the bug (actual behavior)
When
Small
is used inside another Typography (for exampleBody
) a warning is raised:Expected behavior
According to HTML standards for p:
The
<Small>
component is expected to generate the<small>
tag.Reproduction
Additional information
References: W3C - Paragraphs: the P element W3C - Block-level and inline elements MDN Content Categories MDN page for
small