-
-
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
[Hidden] Use the render prop API #11850
Comments
@udanpe I don't understand. Could you explain, thank you. |
<Grid container> // 100%
<Hidden smDown implementation='css'> // 100-83%=16.666%
<Grid item xs={2}> // 100/12*2 = 16.666% from hidden = 1% from container
<Other />
</Grid>
</Hidden>
<Grid item xs={12} md={10}>// 100/12*10 = 83.333%
<Other />
<Grid>
</Grid> |
with implementation='css' |
@udanpe I'm sorry, but it's the same problem as #11795. Please follow our issue template and explain one issue at the time, clearly. You can't use the Hidden CSS implementation with the Grid. I want to work in the future on a render props API to remove the cloneElement and extra div unexpected behavior. |
Example 1. First the second Grid sets xs={12} then sets Hidden and all flashing
Example 2. implementation='css'
render
Example 3. Need remove margin and padding from result
What about xs={0}? When 0 set css display:none and dont need use Hidden
And why i dont can set implementation='css' in MuiTheme?
The text was updated successfully, but these errors were encountered: