You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy and paste relevant lines from _variables.scss into the custom file
Currently bootstrap.scss imports _custom.scssbefore_variables.scss which seems to make any variable declaration within _variables.scss unavailable for use within _custom.scss.
@mdo I think this introduced a new issue, which is that now you can't overwrite variables like $border-radius anymore. If you do that, it has zero effect. The reason is that other values are inferred in the _variables.scss file that have already used the default supplied value.
I understand the intent of this change, but I think it should be reverted back in order to provide greatest flexibility. What @constructit originally wanted to achieve is still possible, it just requires a little extra work because all the referenced variables need to be copied over and declared in the _custom.scss as well.
@daniellangnet The order has been corrected in v4-dev with _custom.scss coming first once again. Variable overrides need to just remove the !default. The downside is this order doesn't allow for using other variables in this file; it's purely for overrides.
Docs explain:
Currently
bootstrap.scss
imports_custom.scss
before_variables.scss
which seems to make any variable declaration within_variables.scss
unavailable for use within_custom.scss
.Whereas when I swap the order of these two files it compiles without errors.
The text was updated successfully, but these errors were encountered: