Badge colour is not working with `[email protected]`
Author: namtiCreated Apr 22, 2025Updated Apr 22, 2025
- components:
Badge - reactstrap version
9.2.3 - import method
es - react version
18.2.0 - bootstrap version
5.3.3
What is happening?
The new [email protected] has changed the class name from bg-{color} to text-bg-{color}
When use
<Badge color="warning" className="rounded-pill">DEV</Badge>The text color is not correct.
The colour is expected to be:
Code
HTML generated by [email protected]
<span class="badge bg-warning rounded-pill">DEV</span>Should be:
<span class="badge text-bg-warning rounded-pill">DEV</span>Source: reactstrap/reactstrap