-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
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
input-group-lg and input-group-sm override validation icon padding #30131
Comments
@mdo Perhaps the solution could be just as simple as adding an bootstrap/scss/mixins/_forms.scss Lines 75 to 92 in fbf294a
.form-control {
@include form-validation-state-selector($state) {
border-color: $color;
@if $enable-validation-icons {
padding-right: $input-height-inner !important;
// ...
} |
+1 |
+1 I'm in the same boat. Small & Large form don't get the padding treatment the regular inputs get. The solution seems to be working fine at first glance. |
I reproduced this on v4. After testing on v5, it's not affected only because validation styles come after input groups—which is not the case in v4. @twbs/css-review Not quite sure about the way to go with this:
Any thought? |
Any fix planned for this? |
Ping @twbs/css-review again :) |
Fixes #30131 Issue mentions `form-control` but it impacts `.custom-select` — but not `textarea` since it has a qualifying type selector that increases its specificty. So another way could be to set `select.custom-select` and `input.form-control`. Would there be any other tag concerned by those classes?
Just updated my reduced test case to cover more things, and opened a PR to discuss this. |
Should be fixed by #32968. |
Fixes #30131 Issue mentions `form-control` but it impacts `.custom-select` — but not `textarea` since it has a qualifying type selector that increases its specificty. So another way could be to set `select.custom-select` and `input.form-control`. Would there be any other tag concerned by those classes? Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Version 4.4.1 (and possibly before) Haven't tested in v5 yet.
When using
.is-valid
or.is-invalid
on a.form-control
in an.input-group-lg
or.input-group-sm
, the right padding added to accommodate for the validation icon is reset to the input group form-control default padding (non-validated), causing long text to overlap the validation icon.As you can see in the following image, Medium (the default input-group size) has the correct righthand padding, while the small and large input-groups do not have the correct padding to accommodate for the validation icon.
The text was updated successfully, but these errors were encountered: