Skip to content

Typography allows invalid HTML tags in as prop #1621

@GomezIvann

Description

@GomezIvann

Describe the bug
Some HTML tags we consider valid for as prop of the DxcTypography component are not so. For example, the tags <br /> and <col /> do not have children, both in HTML and React, which is causing our component to break. We need to restrict the possible values of this prop.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions