mirror of
https://github.com/Unleash/unleash.git
synced 2025-11-24 20:06:55 +01:00
This PR fixes all `invalidDomNesting` errors we're getting in our tests. The culprit was the `Badge` icon we use, which wrapped its children in a div. When that's used as a child of a `p` tag, that'd cause this to trigger. What I've done is to change the wrapping element to a span instead. The Badge itself uses an `display: inline-flex`, so divs and spans should be treated the same, meaning there's no visual change for this. |
||
|---|---|---|
| .. | ||
| Badge.test.tsx | ||
| Badge.tsx | ||