Score:1

Why does libraries-extend not change part of the styles of the module DropzoneJS?

id flag

I use the DropzoneJS module. To change to change part of the styles written here: /modules/contrib/dropzonejs/css/dropzone.widget.css I use libraries-extend.

In the files of my theme particle I wrote:

particle.info.yml:

libraries-extend:
   dropzonejs/widget:
     - particle/dropzone-custom

particle.libraries.yml:

dropzone-custom:
   version: VERSION
   css:
     theme:
       css/style.css: {}

style.css:

.dropzone {
  background: #f1fbff;
  border: 2px dashed #2cb7f4;
  border-radius: 37px;
}

And then I cleaned the cache. But styles are not applied.

Where is the error? Is something missing?

unusedspoon avatar
aq flag
I believe modules can't use the library-extend and its only themes that can https://drupal.stackexchange.com/questions/293532/is-it-possible-to-use-libraries-extend-from-a-module-instead-of-theme
apaderno avatar
us flag
The OP is using it in a theme (since he says *my theme **particle***).
apaderno avatar
us flag
Are you checking this on a page that uses the *particle* theme? Is the theme enabled? Does the theme have a *.info.yml* file? Is that file correctly named after the theme machine name?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.