-
-
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
Validation icons become too small when used on .custom-select #19852
Comments
I might also add that UI for |
I think a good alternative would be to place the icon beside the select |
@RyanZim , i agree with you on the arrows. As far for the bg, it's that small because it is in pixels. |
@p34eu I tend to favor @wolfy1339's suggestion if that's reasonably possible. |
I don't think |
Unsure yet. Only reason it's fucky there is the conflicting background image sources. It'd be a bit of a pain (duplicate code) to override and do the multiple background fix to preserve the validation icon and the select arrow. |
I think the validation icon in the actual way is a bad thing. Depending of the browser the display is ugly for the select with the icon and for other input with new I did some test to make it better, but change the margin-right of the icon depending of the browser is a mess. So I see 2 possibilities to improve it:
|
I've patched this very ugly bug in my project with:
|
I used multiple-backgrounds to add the validation icons, as well as the custom-select indicator. .has-success .custom-select.form-control-success,
.has-warning .custom-select.form-control-warning,
.has-danger .custom-select.form-control-danger {
background: $custom-select-bg no-repeat;
background-image: $custom-select-indicator, $form-icon-success;
background-size: $custom-select-bg-size, ($input-height / 2) ($input-height / 2);
background-position: right $custom-select-padding-x center, center right ($input-height / 4) + $custom-select-padding-x + $input-btn-padding-x;
padding-right: $custom-select-padding-x + ($input-btn-padding-x * 3) + $input-btn-padding-x;
}
.has-warning .custom-select.form-control-warning {
background-image: $custom-select-indicator, $form-icon-warning;
}
.has-danger .custom-select.form-control-danger {
background-image: $custom-select-indicator, $form-icon-danger;
} See fiddle: https://jsfiddle.net/data/ar3j08wa/6/ |
Closing for #22762. |
When using the
.has-danger
/.form-control-danger
classes on a.c-select
custom menu, the.c-select
'sbackground-size
overrides the.form-control-danger
's, making the validation icons really tiny.JSFiddle: https://jsfiddle.net/rjp4ys24/2/
Screenshot ("Name" is a text input and looks correct; "Country" is the custom select menu):
The text was updated successfully, but these errors were encountered: