The Paragraph
component should throw errors if given invalid elements
#1487
Closed
Labels
fe-v4
Issues to be solved before v4 goes gold
kind/breaking-change
Issue/pull request containing a breaking change
kind/bug
Something isn't working
Description of the bug
The
Paragraph
component should perhaps only accept strings as children, or produce warnings/errors when given elements that are not possible to render in a paragraph. This is because there are several rules as to what type of elements are allowed inside a paragraph. Currently you can pass any content (such as headings), which would result inheading
which is invalid HTML, and breaking WCAG rules.
Additional Information
The text was updated successfully, but these errors were encountered: