-
-
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
Fix validation feedback icon in select multiple #33411
Fix validation feedback icon in select multiple #33411
Conversation
b3e244c
to
7de3454
Compare
Validation feedback for `<select multiple>` should look like `<textarea>`. The previous implementation was placing the validation icon in the middle of the select field together with the single select arrow, that is not supposed to be part of this kind of inputs
7de3454
to
1eba8ee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thoughts @ffoodd?
Late to the party, sorry. I guess we could have wrap the previous declaration in a I'll try to have a look later but it fixes the issue👌 |
This PR is not OK. Screenshots for form-select
The solution in Bootstrap 4 was to not display the feedback icon with custom-select (screenshot from Chrome 89 desktop/Ubuntu): |
Hi, thanks for the report I can replicate this issue also in BS4 4.6 Demo: https://jsfiddle.net/tagliala/L527xnrj/ I'm open to both fixes (remove the validation icon AND provide more space to take scrollbar into account) |
This is because you don't use custom-select |
Ok, got it this happens because
in BS5 has less priority. I should investigate more |
Each browser and platform potentially has a different scrollbar with a different width. Example with Firefox Ubuntu when you have a lot of options inside the select: Chrome 89 mobile device (dev tools): What about removing the scrollbar? Then you cannot scroll anymore :-) http://jsfiddle.net/zc4omj6q/1/ (from https://stackoverflow.com/a/11433927). I think the least worst is to remove the feedback icon with select multiple. We still have the border color to give feedback to the user. |
Implementation provided in twbs#33411 does not take into account that some Operating Systems may display a vertical scrollbar in the multiple select field This implementation will hide the validation icons from multiple select fields, just like Bootstrap 4 does. Fix: twbs#33591
Hi! 👋🏼👋🏼👋🏼
It has been a long time I do not contribute to Bootstrap. I've searched for "select validation feedback" but I didn't find open issues or other PRs, so apologies if it is a duplicate or if the behavior is intended
Validation feedback for
<select multiple>
should look like<textarea>
.The previous implementation was placing the validation icon in the
middle of the select field together with the single select arrow, that
is not supposed to be part of this kind of inputs.
How to replicate
is-invalid
oris-valid
class to one of the<select multiple>
or<select size="n>1">
inputsWhat did you get
What did you expect (this PR)