-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Injection order handling as jss does #57
Comments
Thank you for the kind words,
It is a great emotion feature that gives you control over how things are rendered. You should definitely stop using You optain const { classes, cx } = useStyles(); Just in case you didn't notice, there is a new documentation website: https://docs.tss-react.dev/setup There is a mention about Best regards |
Thank you for your answer. I have looked up at the new documentation but i was mainly researching a similar approach as jss You could add a brief sentence about the injection priority handling with cx in your docs, just to clarify it. Thank you for your precious help, i wish you the best for the future. |
Hi, thank you for the awesome work you are providing here.
I'm using tss to replace makestyles on a mui migration.
I have a component library that i use in an application i am currently migrating to mui v5.
Both of them are using tss and i am struggling with style injection, the same way i struggled with the makeStyle back to mui v4.
here in my application:
The first tss class is comming from my library and should be placed below the second.
My classes are declared with
clsx
like so:For jss i quickly found the
index
option provided on a makestyle that can tell the injection priority.Is there anything similar in tss?
I saw in this ticket #56 that the placement of the classes does a difference in the
cx
function.Is it the same foc clsx? I remember on mui they specified that the placement does not impact the injection of the styles.
Do i have to use the function
cx
insted ofclsx
?The text was updated successfully, but these errors were encountered: