-
-
Notifications
You must be signed in to change notification settings - Fork 32.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
Documentation of makeStyles
#17387
Comments
Agreed, it's quite confusing at the moment. From my understanding, we should remove all references to * Not a real statistic. |
Should we close as a duplicate of #15867?
@mbrookes This would work for the duplicated modules. What about the unique modules, only exported from I don't think that we should, nor try to, develop our own styling solution for the sake of it. I think that we should focus on what we do best: build higher-level abstractions (components) on top of the already popular styling solutions. As far as I know, people are using our styling solution for the following reasons, by order of importance:
|
But we have done already (or rather extended JSS), and documented it along side Material-UI, with two different ways to use it, which is an ongoing source of confusion. How to minimise the confusion? Only document the one import path for the common use case (i.e. use with Material-UI).
Either we export it from That's a 9 months away. In the meantime, we can improve the situation. |
For the next 9 months, only documenting imports from @material-ui/core and explaning that styles can be used too would probably be the best tradeoff. So yes, I think that we can re-export everything from styles in core. It would remove the need for a manual installation of the styles package and avoid potential duplication of the module in people bundles :). |
@mnemanja Thanks for raising the issue. Would you like to work on it? I can help with any docs wording... |
@mbrookes Sure thing. I'll address it asap. |
This reverts commit 6c101de.
This reverts commit 6c101de.
This reverts commit 6c101de.
This reverts commit 6c101de.
In the documentation, the dependency import of
makeStyles
API page states that it should be imported from@material-ui/styles
:import { makeStyles } from '@material-ui/styles';
But on the button page, it says it should be taken from the
'@material-ui/core/styles';
import { makeStyles, createStyles, Theme } from '@material-ui/core/styles';
For my test to work I'm using the latter one.
Can you please unify the information in the documentation?
The text was updated successfully, but these errors were encountered: