-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
forms.less - "has-" functions using wrong variables #12731
Comments
Nope, the use of the text vars twice is intentional. The border color is for the alerts, which is ~10% darker than the super light state background colors. We want dark borders to match the text color, so we use that var. |
Came across exactly the same issue. Isn't it much more flexible to have seperate vars, for example if you have a input-group where border-color and background-color for the addon should be the same? |
Nothing here will change until v4. But yes, it'd be better to improve the vars here for that. |
I submitted this first to the SASS repository and was redirected here. I reviewed the LESS files and the issue is the same there. While I reference specific lines in
.scss
files, from what I saw they are practically identical in their corresponding.less
files.My syntax will obviously be wrong when talking about LESS, but the suggestion is just to change the second instance of
text
toborder
, so I didn't convert my code. Then obviously this resolution will need ported to your SASS repository as well.Thanks!
Original SASS issue:
twbs/bootstrap-sass#531
For the three
has-
classes (success, warning, error), the function call is currently using the-text
color variable in the first two passes, but I believe the second should be the-border
color variable. This would seem to be a correct fix based on the variable definitions inmixins.scss
on line 857.As it exists now (
forms.scss
line 272)Suggested change:
The text was updated successfully, but these errors were encountered: