- Issue created by @adamps
- ๐จ๐ฆCanada danrod Ottawa
I believe this doesn't need to be changed:
modules/splide_ui/src/Form/SplideSettingsForm.php:
$form['splide_css'] = [ '#type' => 'checkbox', '#title' => $this->t('Enable Splide library splide.min.css'), '#description' => $this->t('Uncheck to permanently disable the optional splide.min.css, normally included along with skins.'), '#default_value' => $config->get('splide_css'), ];
./src/SplideSkinManager.php:
public function attachCore(array &$load, array $attach, $blazies = NULL): void { // @todo remove BC at 2.x with non-optional $blazies. $blazies = $blazies ?: $attach['blazies'] ?? NULL; if ($this->config('splide_css')) { $load['library'][] = 'splide/splide.css'; }
That checkbox is for enabling the default splide styling I think, the JS is loaded in the *.module.
Correct me if I am wrong, but I think it's how it works.
- ๐ฌ๐งUnited Kingdom adamps
Thanks @danrod you are right.
I see it now:
libraries/splidejs--splide/dist/css/splide.min.css
(that's the path on my system anyway). My mistake was that I was looking for the file within the module not the library. I acknowledge that the explanation did include the word "library" - I just didn't get the meaning๐. - ๐ฎ๐ฉIndonesia gausarts
Thank you all.
Apart from the library, the optional word in the description might also be the hint to avoid confusion, so no correction is required.