Describe the bug
Up until 0.24, components could define dynamic admin stylesheets to be included in the admin stylesheet as shown here:
|
<% Decidim.component_manifests.map(&:admin_stylesheet).compact.each do |stylesheet| %> |
|
@import "<%= stylesheet %>"; |
|
<% end %> |
After the webpacker migration, I this is no longer possible.
To Reproduce
- Define an admin stylesheet for a component using
component.admin_stylesheet = "...".
- See if the stylesheet got included in the admin styles
Expected behavior
We should apply a similar fix for the admin stylesheet inclusions as we did for the dynamic front-end stylesheet inclusions at:
#8115
I suggest the following register method for the admin stylesheets:
Decidim::Webpacker.register_stylesheet_import("stylesheets/decidim/foobar/admin", group: :admin)
Screenshots
N/A
Stacktrace
N/A
Extra data (please complete the following information):
- Device: (any)
- Device OS: (any)
- Browser: (any)
- Decidim Version: 0.25.0+
- Decidim installation: (any)
Additional context
N/A
Describe the bug
Up until 0.24, components could define dynamic admin stylesheets to be included in the admin stylesheet as shown here:
decidim/decidim-admin/app/assets/stylesheets/decidim/admin/application.scss.erb
Lines 4 to 6 in 200bfd2
After the webpacker migration, I this is no longer possible.
To Reproduce
component.admin_stylesheet = "...".Expected behavior
We should apply a similar fix for the admin stylesheet inclusions as we did for the dynamic front-end stylesheet inclusions at:
#8115
I suggest the following register method for the admin stylesheets:
Screenshots
N/A
Stacktrace
N/A
Extra data (please complete the following information):
Additional context
N/A