Closed maxobaxo closed 4 years ago
Hi @maxobaxo ! thanks for using bootstrap v4.
This issue is related to https://github.com/bootstrap-styled/v4/issues/92#issuecomment-560459744
To make it short:
If you are using the new utils, then it should be possible to use the white color (or any other colors)
If you want to take care of it, just add the new type of colors to the button (and others) components and use the v4.4.0 utilities.
Since I do not need that myself now, I'll let you take care of the change and PR to close this.
Feel free to stars our repo to bring more contributors.
:tada: This issue has been resolved in version 3.3.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Issue Type
Description
When utilizing the
Button
component from@bootstrap-styled/v4/lib/Button
, I'd like to be able to passwhite
as a value for the color prop, similar to below, without receiving a console error for prop-type validation.While the documentation does not stipulate that "white" is a valid value for
props.color
, the library seems to handle the value successfully, with the exception of prop validation. For example, the browser's inspector reveals that the rendered button element receives the classesbtn btn-white
whenprops.color = "white"
.Can the documentation and prop validation be updated to accommodate the value "white" for
props.color
?Steps to reproduce
Here is a look at my project's dependencies and versions:
Versions