-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
[docs] Include JSS in styling solution interoperability guide #30736
[docs] Include JSS in styling solution interoperability guide #30736
Conversation
@@ -734,3 +737,103 @@ export default function SliderThumbOverrides() { | |||
return <Slider className="p-4" classes={{ active: 'shadow-none' }} />; | |||
} | |||
``` | |||
|
|||
## JSS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't mind having section about tss-react
, but having it under JSS header is misleading, as it is not using JSS, but emotion. I would rather add the usage of tss-react
in a subsection under emotion maybe (I am not sure about this). cc @mui-org/core
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mnajdova,
I am afraid that mentioning TSS as a subsection of @emotion
could be confusing for some peoples.
The fact that TSS uses emotion under the hood is merely a technicality. The API of tss-react
is much closer to react-jss
than it is from the API of emotion.
On the other hand, I think that peoples that would like to use a JSS like API would be interested to know that there is an option for them.
What do you think of my update? I replaced the title by: JSS TSS.
Best regards,
PS: tss-react
now has a proper documentation website: https://docs.tss-react.dev
👋 The migration PR has been merged. Please follow these steps to make sure that the contents are all updated. (Sorry for the inconvenience)
If you are struggle with the steps above, feel free to tag @siriwatknp |
It's done 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you apply the suggested fix and run yarn prettier
, thanks
Co-authored-by: Siriwat K <siriwatkunaporn@gmail.com>
done! thx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks for making TSS!
> it's a peer dependency of `@mui/material`. | ||
|
||
> ⚠️ For [Storybook](https://storybook.js.org): As of writing this lines storybook still uses by default emotion 10. | ||
> Material-ui and TSS runs emotion 11 so there is [some changes](https://github.com/garronej/onyxia-ui/blob/324de62248074582b227e584c53fb2e123f5325f/.storybook/main.js#L31-L32) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> Material-ui and TSS runs emotion 11 so there is [some changes](https://github.com/garronej/onyxia-ui/blob/324de62248074582b227e584c53fb2e123f5325f/.storybook/main.js#L31-L32) | |
> Material UI and TSS runs emotion 11 so there is [some changes](https://github.com/garronej/onyxia-ui/blob/324de62248074582b227e584c53fb2e123f5325f/.storybook/main.js#L31-L32) |
I took care of it.
Good day,
I think the JSS hook-based API (
makeStyles
->useStyles
) has still a solid fanbase.If you think that this is pushing TSS too hard, feel free to close, I won't take offense.
Best regads,