Skip to content
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

Select2 style problems #119

Closed
RomeroMsk opened this issue Jul 28, 2014 · 6 comments
Closed

Select2 style problems #119

RomeroMsk opened this issue Jul 28, 2014 · 6 comments

Comments

@RomeroMsk
Copy link

I've found some problems with Select2 styling:

  1. When font-size of inputs is smaller than 14px, placeholder of single select will not center vertically:
    image
  2. When select dropdown list is opening upside its appearance is not styled well (background, corners etc).
    Downside:
    image
    Upside (when select is near the window bottom):
    image
  3. select2-container will lose focus when you click on item. So you will see non-active container (without blue border):
    image
    If closeOnSelect plugin option is set to true, this problem is more actual.
@kartik-v
Copy link
Owner

Items 2 & 3 are closed.

Item 1 depends on your own theme - its styled for 13px & 14px bootstrap font sizes. The line height of the select container content needs to be adjusted based on font-size.

@RomeroMsk
Copy link
Author

Thanks, I will try it later and report back.

@RomeroMsk
Copy link
Author

I've just tested.
3rd - great.
2nd: corners are rounded now, but background is still grey (not white as in downside case).
1st: ok, I've solved this by setting .select2-chosen line-height.

@kartik-v
Copy link
Owner

For item no. 2 -- background has been standardized to the grey gradient on select2 focus.

@RomeroMsk
Copy link
Author

I thought you will standartize it to white :) Nvm, I can set it in my own css. Thanks!

@kartik-v
Copy link
Owner

Yes have now standardized it to the grey gradient that blends into the dropdown below. This will highlight the selected area (as a title block) with a style different than the dropdown list (which has white background).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants