swissquote / crafty

The task runner that binds them all
https://swissquote.github.io/crafty/
Apache License 2.0
30 stars 13 forks source link

Check for compound CSS selectors; warn they will no longer work in a future release #2217

Closed onigoetz closed 11 months ago

onigoetz commented 1 year ago

CSS Nesting is coming and if we want to stop transpiling it one day we need to align with its syntax.

Compound selectors such as .Card { &__content { }} will not be supported

Also some constructs such as (which apparently already don't work with lightningcss)

:global("Test") {
   &--leftPadding
}

Ideally, we should warn starting now that this won't be supported in Crafty 2.0 (or another major milestone)

onigoetz commented 11 months ago

Released: https://github.com/swissquote/crafty/releases/tag/v1.24.0