Issue description
The Badge component can be rendered as default without specifying any color. IMO color should be required. There isn't any default Badge in current version of Bootstrap and even in Reactstrap, the badge without color will not be visible. I fixed the docs in this PR, but I think we should still make the color required.
- Reactstrap version
#4.8.0
- Bootstrap version
#4.0.0-beta
- components:
Badge
Steps to reproduce issue
- Render
Badge without specifying color property:
Discussion about similar issue concerning Button: #535. Currently rendering Button without color prop will render secondary button. IMO this is inconsistent with Bootstrap but we should at least ensure that all components act in similar and predictable manner. Therefore if this is the behaviour we are after, Badge should work similarly as well and render secondary Badge if color is not specified.
Issue description
The
Badgecomponent can be rendered as default without specifying anycolor. IMOcolorshould be required. There isn't any defaultBadgein current version of Bootstrap and even in Reactstrap, the badge without color will not be visible. I fixed the docs in this PR, but I think we should still make thecolorrequired.#4.8.0#4.0.0-betaBadgeSteps to reproduce issue
Badgewithout specifyingcolorproperty:Discussion about similar issue concerning
Button: #535. Currently renderingButtonwithoutcolorprop will render secondary button. IMO this is inconsistent with Bootstrap but we should at least ensure that all components act in similar and predictable manner. Therefore if this is the behaviour we are after,Badgeshould work similarly as well and render secondaryBadgeifcoloris not specified.