- Issue created by @Anybody
- 🇩🇪Germany Anybody Porta Westfalica
In 🐛 Klaro library seems way too large? Active I saw that
klaro-no-css.js
actually IS used already, so the left question is - should there be a way to use a styled one or do we better solve all styling in Drupal? (I'd vote for the second option and would close this then, but maybe others think different?) - 🇩🇪Germany jan kellermann
We are using the JS without CSS, but loading the CSS-file separately, see klaro.libraries.yml
Here I have linked the SCSS which we use to override klaro-styles:
https://www.drupal.org/project/klaro/issues/3495342#comment-15912052 ✨ Stylings per used theme ActiveIf you want to disable loading the klaro.min.css, you can use this code:
/** * Implements hook_library_info_alter(). */ function mymodule_library_info_alter(&$libraries, $extension) { if ($extension === 'klaro') { unset($libraries['library']['css']); } }
If more people need this function, we can add this as config item.