Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(theme): dont conditional import variables to avoid scoping
The theme.less file imports variables from a 3 layer logic, meant to possibly override previous defined variables for custom theming. In 2.9 we implemented conditional checks if an element has got a custom theme to avoid importing the files multiple times. Unfortunately this activated scoping, which means variables from a theme did not override the default variables anymore or, even worse, a custom element cannot access the same custom site.variables. This PR now removes the conditional checks again. It does not hurt even if the same variable files are imported multiple time, as everything which is not LESS variable inside those files is removed by the gulp pipeline after building.
- Loading branch information