Closed Mil4n0r closed 4 months ago
Checklist
/lib
/website
Description Modified BaseTypography component to prevent unexpected tags to be assigned to the as prop
as
Additional context Some basic unit testing was also added in order to ensure that invalid tags are replaced with "span".
"span"
"a" | "blockquote" | "cite" | "code" | "div" | "em" | "figcaption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "pre" | "small" | "span" | "strong"
Discussion: #1842
Closes #1621
This is closed for now as it requires some discussion regarding what subset of tags is considered valid.
Reopened.
Checklist
/lib
directory./website
as needed.Description Modified BaseTypography component to prevent unexpected tags to be assigned to the
as
propAdditional context Some basic unit testing was also added in order to ensure that invalid tags are replaced with
"span"
."a" | "blockquote" | "cite" | "code" | "div" | "em" | "figcaption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "pre" | "small" | "span" | "strong"
Discussion: #1842
Closes #1621