You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<div class="has-danger form-group">
<label for="first_name" class="">What is your name?</label>
<input class="form-control" ...>
<small class="form-text text-muted">Please include first name and last name.</small>
<div class="form-control-feedback">There was a problem!</div>
</div>
<div class="form-group has-danger">
<label class="form-control-label" for="inputDanger1">Input with danger</label>
<input type="text" class="form-control form-control-danger" id="inputDanger1">
<div class="form-control-feedback">Sorry, that username's taken. Try another?</div>
<small class="form-text text-muted">Example help text that remains unchanged.</small>
</div>
Solutions
Most painless solution is for me to just pass form-control-label as the className prop, but given that this is in the Bootstrap documentation, it seems that a more holistic solution could be preferable (which I'm happy to handle).
I believe the change will be pretty much a one liner, but will have to make sure the class is only added when the Label is not being used with a column prop or when the label is for checkboxes/radios to follow the examples from Bootstrap.
If you're okay with this addition, I'm happy to open up a PR!
The text was updated successfully, but these errors were encountered:
Issue description
#4.6.2
Label
Label appears to be missing the
form-control-label
class. I ran into this problem when handling validation issues.Example of code
Code output
Bootstrap Documentation
This is from the latest Bootstrap documentation
Solutions
Most painless solution is for me to just pass
form-control-label
as theclassName
prop, but given that this is in the Bootstrap documentation, it seems that a more holistic solution could be preferable (which I'm happy to handle).I believe the change will be pretty much a one liner, but will have to make sure the class is only added when the
Label
is not being used with a column prop or when the label is for checkboxes/radios to follow the examples from Bootstrap.If you're okay with this addition, I'm happy to open up a PR!
The text was updated successfully, but these errors were encountered: