We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Applies to Bootstrap 4.6.0 & 5.0.0-beta2.
Consider this 4.6.0 code:
<div class="input-group"> <input class="form-control is-invalid"> <div class="input-group-append"> <button type="button" class="btn btn-outline-secondary">Button</button> </div> </div>
https://codepen.io/tkrotoff/pen/rNWYbyJ?editors=1100
We get:
Instead of:
==> the input right border should be red instead of grey
The same happens with 5.0.0-alpha2: https://codepen.io/tkrotoff/pen/MWbrNpp?editors=1100
<div class="input-group"> <input class="form-control is-invalid"> <button type="button" class="btn btn-outline-secondary">Button</button> </div>
Quick fix:
// 4.6.0 .input-group { .form-control.is-invalid, .custom-select.is-invalid { z-index: 3; } } // 5.0.0-beta2 .input-group { .form-control.is-invalid, .form-select.is-invalid { z-index: 3; } }
FYI when focusing on the input, the right border is OK:
because of this code:
// Bring the "active" form control to the top of surrounding elements > .form-control:focus, > .form-select:focus { z-index: 3; }
https://github.com/twbs/bootstrap/blob/v5.0.0-beta2/scss/forms/_input-group.scss#L20-L24
The text was updated successfully, but these errors were encountered:
I guess it makes sense.
Sorry, something went wrong.
.input-group
Successfully merging a pull request may close this issue.
Applies to Bootstrap 4.6.0 & 5.0.0-beta2.
Consider this 4.6.0 code:
https://codepen.io/tkrotoff/pen/rNWYbyJ?editors=1100
We get:
Instead of:
==> the input right border should be red instead of grey
The same happens with 5.0.0-alpha2: https://codepen.io/tkrotoff/pen/MWbrNpp?editors=1100
Quick fix:
FYI when focusing on the input, the right border is OK:
because of this code:
https://github.com/twbs/bootstrap/blob/v5.0.0-beta2/scss/forms/_input-group.scss#L20-L24
The text was updated successfully, but these errors were encountered: