I have a library I\'m making with a Header component and a Button component. I gave them ID\'s to identify them in my SASS file, this is my current
Header
Button
I came across the same problem. I am using scss files with module pattern.
The simplest solution I could find is using attribute selector.
This does not work:
#myID { color: red; }
Instead of above code I used below in my module.scss file and worked:
h1[id="myID"] { color: red; }