Closed corradopetrelli closed 2 months ago
Latest commit: e4bbd0368e1bc255aec36aed0931f35d60bd5b96
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Thanks for the PR! There's many browser-specific psuedo-elements, some with very little documentation, so it's a bit hard to keep up with them all. Thanks for the help.
For future reference, you can generate CSS using arbitrary psuedo-elements/selectors via the selectors
property, in case it's not available at the top-level of the style
object:
import { layer, style } from "@vanilla-extract/css";
export const myStyle = style({
selectors: {
"&::-whatever-you-want": {
color: "red",
},
},
});
@askoufis thank you, that was exactly the workaround I used 😄
Resolves: #1474