- π«π·France ericdsd France
Hi i tried to apply that same solution again on 8.x-1.0-rc1 and core 9.5.3, and it turns out that :
- if i clear the caches with drush > my modal its correctly styles in front theme
- if i clear the caches from ui (link in gin_toolbar on a frontend page > my modal gets overridden by gin (black header and transparent background)
- π«π·France ericdsd France
A quick fix was to use
/** * Implements hook_css_alter(). */ function MY_FRONTEND_THEME_css_alter(&$css, $assets) { $path = \Drupal::service('extension.list.theme')->getPath('gin') . '/dist/css/components/dialog.css'; unset($css[$path]); }
- πΊπΈUnited States bvoynick
Also ran in to this. Gin defines two separate libraries for dialogs, so you'll need three overrides:
libraries-override: claro/claro.drupal.dialog: false gin/dialog: false gin/gin_dialog: false
With the addition of gin/dialog to the list, I'm no longer seeing any Gin dialog-related CSS in the public theme using these overrides.