Closed lbelinsk closed 6 years ago
Is .progressBar
a local class in this case? if it is, then it is already scoped to your stylesheet and does not require additional .root
scoping.
.progressBar is the grandchild of root, yes. Isn't there a boolean we can config for root scoping? What if it was false?
Root scoping is already defaulted to false, that's why you're getting warnings like unscoped native element ".someClass" will affect all elements of the same type in the document
.
In your case (I'm assuming, without seeing the entire stylesheet), your .root
class was just not needed (increasing specificity for no reason). The warning about defining states in complex selectors (which, .root .x
is) is also intended as that's what's currently supported by Stylable.
Ok, thanks. From my side, you can close the issue.
I am trying to put states on some element which is not the root element.
Maybe I am doing something wrong, but this works for me only if I remove the ".root" it works:
This is not just a warning, I can't see my component at all when this error occurs.