We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When wrapping the Divider component with the Box component to get access to the utility props, the margin props aren't working.
Divider
Box
The margin props should set the margin styling on the component that is passed to `Box`.
The margin props are being ignored.
https://stackblitz.com/edit/uaeepa
I want to be able to add margin on the Divider without having to wrap Box around it
The text was updated successfully, but these errors were encountered:
@zeckdude This is a known limitation. You have to reverse the import order to get the CSS injection order correct:
import Divider from '@material-ui/core/Divider'; import Box from '@material-ui/core/Box';
We want to make the system native in #15561. It wouldn't suffer from this problem.
Sorry, something went wrong.
No branches or pull requests
When wrapping the
Divider
component with theBox
component to get access to the utility props, the margin props aren't working.Expected Behavior 🤔
Current Behavior 😯
Steps to Reproduce 🕹
https://stackblitz.com/edit/uaeepa
Context 🔦
I want to be able to add margin on the
Divider
without having to wrapBox
around itYour Environment 🌎
The text was updated successfully, but these errors were encountered: