-
Notifications
You must be signed in to change notification settings - Fork 212
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
Label width in responsive design #149
Comments
I ran into this same issue and commented this part out. Worked well for me. +1 and thanks @mattmclarty. Also, removing |
Indeed, I give +1 for removing that part, but have at the moment less time. Maybe a volunteer can post a pull-request. |
I submitted the updates I suggested. I'd also like to say that this component is very handy. Great work, keep it up. :) |
+1 on @mattmclarty's comment. This is probably the easiest plugin I've worked with in regards to this. The alternative was Bootstrap Select which is nice, but the Bootstrap CSS can be very overbearing. |
I would recommend removing these lines from the code:
You already have a class of 'selectBox-label' set for the label. This is where sizing should be handled. If you allow for the users to size from the CSS, the label and dropdown can then resize depending on screen size and can be more readily used in responsive designs.
You could set a default size for the label in your css and encourage users to handle their sizing there.
.selectBox-label { max-width:85%;}
Or not set one at all and allow the element to size as needed.
The text was updated successfully, but these errors were encountered: