Replies: 1 comment
-
{
'display.medium': '_ahjsei2'
} Using this classname directly inside a selector doesn't work because the const displayMedium = {
fontSize: "12px",
lineHeight: "14px",
};
const typography = styleVariants({
"display.medium": displayMedium,
});
const name = style({
display: "flex",
selectors: {
[`${noMap} &`]: {
fontSize: "12px",
lineHeight: "14px",
},
},
});
const name = style({
display: "flex",
selectors: {
[`${noMap} &`]: displayMedium,
},
}); I think we could make this work by copying the classname's properties into where they're referenced, but I haven't put much thought into the consequences/complexity of this, so for now the easiest way is to just reference the same style object. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
asis
I want it like this
is there any way to use styleVariants in selectors?
Beta Was this translation helpful? Give feedback.
All reactions