[Proposal] Extend multipart properties in mixins #3674
SevenOutman
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
You can already do this. .add-background-transition() {
transition+: background-color 0.3s;
}
.class {
transition+: color 0.3s;
.add-background-transition();
} Result: .class {
transition: color 0.3s, background-color 0.3s;
} |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There're several CSS properties that supports multiple parts, e.g.
transition
. Sometime we want to write mixins that extends these properties, for example, below is a mixin meant to add background-color transition to a class.But applying this mixin will not result in transition to be extended but overwritten:
So I think it would be great if Less supports extending properties like transition:
Beta Was this translation helpful? Give feedback.
All reactions