We have installed the UI component “simple modal” from the marketplace, and we can modify styles for it using a Theme extension. However, when we move the LESS code from the extension into our main Theme Library, the style changes are not applied to the component — only if such changes are specified in an extension does it work.
So, here’s the question: the marketplace component is found as a directory in our “custom components” directory for the container where we installed the component. This custom component directory contains a “styles” folder with a .less file for the component. Am I correct in understanding that styles defined here over-ride what we have in our main Theme Library? But that Theme Extensions over-ride what is in the style file for the custom component?
Sub-question: is it a bad idea to “hack” things directly in the file system where the marketplace component is placed? Like editing the index.less file directly? Related question: is it a bad idea to edit the actual js files for the component to modify it a little? It looks like we would be able to do this, but perhaps there are some bad “side effects” I’m not aware of…