-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
CSS settings leak on .form-input-{sm,lg} .form-control #763
Comments
before: +input-size('.input-sm, .form-group-sm .form-control', ...) after: +input-size('.input-sm', ...) +input-size('.form-group-sm .from-control', ...)
@koukou73gr @caleb Can you guys confirm whether the commit above fixes the issue? 🎉 |
I haven't tested it, but I will. I think that this still has the problem of generating css that doesn't make sense (see my bug on bootstrap: twbs/bootstrap#15074) This is some of the CSS generated from the LESS version of textarea.input-lg,
textarea.form-group-lg .form-control,
select[multiple].input-lg,
select[multiple].form-group-lg .form-control {
height: auto;
} It doesn't seem to make sense that this would target Wouldn't the This shows the bug: http://jsbin.com/nomobegivu/1/edit?html,css,output The At any rate, your patch looks like it will solve part of the problem. |
@caleb Please report the issue against the LESS version, thank you |
@glebm, would your change to less_conversion.rb change how the input-size mixin gets implemented in the SASS version? If it does, could you paste the new implementation somewhere please? Because as it stands, just me splitting the selectors in the @include input-size calls would partially solve the problem, like @caleb said, as it would still target, say: textarea.form-group-sm .form-control (which I suppose does not exist anywhere intentionally...) while it should probably target: .form-group-sm textarea.form-control (or nothing at all...). |
@koukou73gr Sass version aims to be 100% compatible with the LESS version (bugs included), so the actual issue has to be fixed upstream. Splitting the selector results in the CSS closer to the LESS version, because this is how the |
With version tagged as 3.3.0, in lines 328 and 330 of bootstrap/_forms.scss the selector changed to also include .form-input-{sm,lg} .form-control. That is:
However, in input-size mixin, the selector string is also used like this:
which ultimately expand to eg:
which causes the CSS for select.input-sm to also apply in every .form-group-sm .form-control.
I believe this is unintentional. It is easily overridden but I guess you guys should fix this.
This also exists in the LESS version.
Thanks,
-Kostas
The text was updated successfully, but these errors were encountered: