Closed GiorgosK closed 4 years ago
The way I do it is by using :global()
in the consuming project
@antony Thanks, you were right I had to either use important or use an extra element selector to get it to the take precedence
:global(.carousel .left) {
left: 0 !important;
}
:global(.wrapper .carousel .right) {
right: 0;
}
You need the extra selector anyway because :global
descopes your selector string, so you'd affect css across your entire project which matched the same selector ;)
I have looked at this https://stackoverflow.com/questions/56988717/how-to-target-a-component-in-svelte-with-css and I ended up doing this in my CSS
is there a recommended way to modify the left/right control positioning ?