Update postcss composes plugin #2555
Labels
✨enhancement
⚙️ technical
Technical improvements, maintenance or other issues that are not directly linked to a feature
It currently uses
.startsWith()
, which has some consequenses with how it looks for a class.Take our
utilities.css
file, that has two classes for focus:If I now use
@composes ds-focus from ...
in another file, this works fine, since if matches with the class i want first.The problem occurs if we swap the classes so it reads like this;
If I now use
@composes ds-focus from ...
in another file, it will match with.ds.focus--visible
, since the class begins with the selector I chose,We should update the plugin to match the whole selector, but only on classes.
The text was updated successfully, but these errors were encountered: