FR: Child Theming: Union's extra SCSS could already replicate Boost's extra SCSS rules if a theme with Boost Union as its ancestor is the current theme #718
Labels
child theme support
Something which helps the creation and management of Boost Union child themes
discussion needed
Soemthing which need to be discussed before writing the first line of code
Is your feature request related to a problem? Please describe.
In our child theme we currently need to do this:
Basically, Moodle runs each theme's extra SCSS function in the ancestry with the $theme object of the current theme. When your theme doesn't replicate Boost's settings backgroundimage, loginbackgroundimage and scss, that extra SCSS generated by Boost's function is incomplete.
Boost Union replicates those settings, so we run Boost's extra SCSS function again with Union's config to get the correct SCSS.
But then we have to run Union's extra SCSS function again to have a correct order for the SCSS rules.
Describe the solution you'd like
Union could already run Boost's extra SCSS function at the start of its own extra SCSS function with the Union config as the parameter to generate the correct SCSS.
This way we wouldn't even need our own extra SCSS function anymore.
Of course, this should only be necessary if Union isn't the current theme.
Describe alternatives you've considered
Reproducing the settings still doesn't make sense to me...
The text was updated successfully, but these errors were encountered: