-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
Refactor as custom select + Select2 4.1 compatibility #67
base: master
Are you sure you want to change the base?
Refactor as custom select + Select2 4.1 compatibility #67
Conversation
|
d00a85e
to
79d4f47
Compare
@tagliala I had a custom-fix for an issue in my CSS, which is described here: Placeholder being cut off? This is hopefully not necessary anymore. After removing this, the reported issue disappeared of course. I am sorry and thank you for the support. |
Hi @NordicAT, don't worry, you're welcome.
I can try how to replicate, but maybe this has been fixed upstream in select2 4.1 |
79d4f47
to
a4cf08d
Compare
I can confirm an issue with |
a4cf08d
to
8f13c45
Compare
@NordicAT fixed, thanks |
I can confirm, that the font-family issue is fixed with the latest CSS - Thank you! 👍 I believe there is something wrong with Multi-Select. The screenshot below shows a Multi-Select from the original Select2-docs: Items that have been already selected have a grey background in the list. First issue:When looking on the same situation with your/our CSS for BS4 the background is way too light in my opinion. It may be, that my monitor has too less contrast, but I can hardly see a difference between selected and not selected items: It must not be as dark as in the original Select2 CSS. Second issue:As in the screenshot above I see a light-grey background on selected items in the list. I hope this issues are not in my environment only ... |
Agreed. Let me check how bootstrap deals with this. edit: I've just used
Replicated. It is also an issue at https://ttskch.github.io/select2-bootstrap4-theme/ |
8f13c45
to
7a549ba
Compare
@NordicAT fixed both |
7a549ba
to
df3c43e
Compare
@tagliala Just a small cosmetic one: When activating a Multi-Select by clicking on it, the select-box gets a blue outer-glow: When activating a Single-Select by clicking on it, the select-box does not get a blue outer-glow. It gets glowing after an item has been selected. I may be wrong, but for me this does not seem consistent. |
df3c43e
to
3edb9df
Compare
@NordicAT done. I've added the focus style to the properly focused input element, as in the default Select2 |
c00bbfe
to
ffe389d
Compare
I just use basic features of Select2 and for me it is working fine now. Thank you very much for your effort! ❤️ 👌 |
ffe389d
to
a689372
Compare
1a0c800
to
3c59426
Compare
3c59426
to
88f0800
Compare
4a90287
to
9b98147
Compare
- Update jQuery to 3.6.0 - Fix Boostrap CSS to 4.6.0 - Update to Select2 4.1.rc0 - Add pre-selected examples - Add default select fields
46f875b
to
19d789a
Compare
- Uses Bootstrap's `custom-select` implementation for uniformity - Use SVG background image for clear button - Add some lints to improve code readability - Use the same Browserlist configuration as Bootstrap 4.6 Ref: https://getbootstrap.com/docs/4.6/components/forms/#select-menu Close: ttskch#49, ttskch#60, ttskch#61, ttskch#19
Revert when select2/select2#5993 is fixed
19d789a
to
c848489
Compare
Move styles inside theme
I've fixed a couple of issues with validation focus and validation icons are now supported also in |
That is great news! |
@tagliala please share your estimate when release/tag could be made? |
This is not my repository, apologies |
I've been using your branch @tagliala and following this PR for changes. Appreciate the work! Have you considered publishing your changes to npm under |
I apologize for the negligence. |
Hi, I was trying to create a Bootstrap Horizontal form with Select2 selects. There seems to be a problem in Smartphone-size: I have created the following JSFiddle using a strapped-down sample-code to reproduce the issue: I am not sure about the problem-source. It may not be the fault of the select2-bootstrap4-theme. Thank you |
This theme does not support Bootstrap 5 |
@tagliala |
I've got the issue, but I don't know if 100% should be forced in the CSS Please add Ref: https://github.com/ttskch/select2-bootstrap4-theme/blob/master/docs/script.js#L5 |
@tagliala I have just realized that this may not be an issue for the end-user, because on page load it is displayed OK. |
@tagliala Could you please assess what is stil missing to finish this pull request? |
@Rikijs since this is not backward compatible, it needs another branch on this repo to push against |
@tagliala Does this version still support 4.0.x as well, or only 4.1? (It does) But, looking at the svg image used for the clear button, it seems to include a background image with an "X", whereas 4.0 includes an X in the text. Is there a reason for including the X in the svg (or how does one remove the default Select2 X)? |
Close: #19, #49, #51, #60, #61
custom-select
implementation for uniformityFixes the following existing issues:
Waiting for the proper branch to pushing against
Please help me testing
Screenshots