-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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(examples): add Material UI example #1441
Conversation
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.
Looks great to me 👍 Just a couple changes needed.
|
||
// Add the emotion style tags after the insertion point meta tag | ||
const markup = html.replace( | ||
/<meta(\s)*name="emotion-insertion-point"(\s)*content="emotion-insertion-point"(\s)*\/>/, |
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 think this could be much simpler if this were something like __STYLES__
(like the styled-components example).
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.
@kentcdodds I think it is correct because in the styled-components example the STYLES was replaced from the extracted CSS and in material-UI, we need to add the emotion style tags after the insertion point meta tags and this is a one-time thing as shown in the official material-UI examples.
@@ -0,0 +1,53 @@ | |||
# Material-UI Example |
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.
This README doesn’t follow the other examples style, for example it doesn’t have a button to try it in CodeSandbox
Co-authored-by: Michaël De Boey <[email protected]>
I think you may need to apply the same strategy that's done in #1485 to avoid some pit-falls with CSS-in-JS. Can you give that a look? |
No description provided.