- Issue created by @f2boot
- 🇯🇴Jordan Rajab Natshah Jordan
Thanks for reporting!
Following up on the proposed fixes.
When css is aggregated, the Dashboard icon in gin admin-navigation does not show up.
Inspecting the code in browser,
when no preprocess is activated, css is
--icon: url(../../media/sprite.svg#grid-view);
(working)
when aggregated, css is
--icon: url(/modules/contrib/varbase_dashboards/media/sprite.svg#grid-view);
(not working)
while it is
--icon: url(/themes/contrib/gin/dist/media/sprite.svg#create-view);
for the other admin-navigation icons
(/themes/contrib/gin/dist/media/sprite.svg#grid-view is working when set manually)
Activate css aggregation preprocess => no icon
Deactivate css aggregation preprocess => icon is visible
We could
- set preprocess: true for the css in admin-navigation library
- set icon path from drupal root instead of relative
but neither looks right / future proof
Do we need to use a hook_css_alter or another one to set the proper path ?
Active
1.0
Code
Thanks for reporting!
Following up on the proposed fixes.