You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, this is kind of expected. Simply by definition, extend is supposed to affect only selectors without taking into account what actually is going on inside of the affected rulesets. So in short, if you use merge don't use extend and vice-versa.
Technically (if we consider this as a feature request), in theory it is possible to have some "more smart" extend-like feature that will analyse both extended and extending rulesets and cast mixin-like behaviour where necessary but I doubt we'll have anything like this any time soon. (I guess this idea has been already mentioned somewhere among those tens of extend dedicated threads, for example in #2095 -> route:2)
When I use this LESS:
I expect this:
The actual result is:
When I use .error like a mixin:
It does the merge, but it has duplicate styles, of course:
Thanks.
The text was updated successfully, but these errors were encountered: