-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[ScopedCssBaseline] Allow css to be only applied on children #19669
[ScopedCssBaseline] Allow css to be only applied on children #19669
Conversation
Details of bundle changes.Comparing: 9f54e27...28f3506
|
I'm not sure why the |
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.
It's a great start, thanks for working on it.
However, I think that we will need to change the strategy. The scopeToChildren
prop fundamentally changes the structure of the component. This turns into a couple of problems: forward ref that won't always work, prop spreading conflict with the exact prop types, style hook that won't be possible with styled components migration.
In this case, I think that we should go with a new component. What about ScopedCssBaseline
?
Note 1. We might want to use withStyles over the hook to fix #17244, now is a good opportunity. |
405fffa
to
889e753
Compare
889e753
to
968ef44
Compare
I think the title or the description should mention that a new component has been added. |
@joshwooding thanks for the tip |
Fixes #19657
Fixes #17244