When pasting subselectors copied from a class, they do not appear directly after clicking “Add”, you need to click on the class name to deselect it and click again to reselect it to access your newly pasted subselectors
When pasting a “::before” subselector (I don’t know if it does the same on other kinds), the generated CSS keeps the class name of the original class, so it doesn’t do anything
When deleting a subselector, and trying to re-add it again, when entering enter to add the subselector, this does nothing. You need to first unselect the class, reselect it, and then now you can add again the subselector.
Unfortunately, this is correct. When you use {CURRENT} placeholder – it will be replaced in css, so it will be .cta{}
But when you copy this selector, styles are also copied, so it’s still .cta
Styles are generated in time when you add them, so, if you make some changes in your .cta2, I think {CURRENT} will be also replaced in styles with correct name. Otherwise, if you just copy class and do not change anything in it, then why do you need two classes with the same styles?
Of course, the example I showed is not very useful as it was just for showing with little steps
I just re-tested with other options, like with a span subselector and simple background color, and in fact, it does keep the original class name for any kind of style, not just custom css.
Indeed, it’s not a problem if you modify the subselector because it will be changed accordingly, but it can be problematic for a more complex class with several subselectors : you maybe just modify one or two subselectors, or even maybe just the parent class, and leave untouched other subselectors
Now it becomes hard to find what’s wrong and to fix the issue. It happened several times to me but I never had a chance to find why until recently
Imagine you want to have your own version of “Magnetic Vertical tabs” template class, you modify some parts but not all
I am not sure what you are trying to do but I believe there is proper way to do this. So, instead of copying classes (why?), you need to duplicate whole block. Then click on class, brush icon and select to rename class. This will rename class and you have new class with all subselectors.
Why? because if there’s a copy/paste feature, this should work, otherwise there is a buggy feature pending in GS for which one’s need to find and know a workaround. There’s just times where you might copy a class, I’m not explaining here many workflows that could use this feature, just simply reporting the problem.