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
Paper component is cascading withBorder and shadow property #4930
Comments
Please provide a sandbox with a minimal reproduction, template – https://codesandbox.io/s/mantine-template-9ze89?file=/src/App.tsx |
@rtivital you'll see the child paper component didn't received any border or shadow prop but it's inheriting them from the Parent paper component, and worst of all it wont' rest explicitly, I have to use custom css for that, |
The issue with export function NestedPapers() {
return (
<Paper p="md" withBorder shadow="md">
Parent
<Paper p="md" shadow="none">
Child
</Paper>
</Paper>
);
} |
The issue has been resolved in 7.1.3 |
What package has an issue
@mantine/core
Describe the bug
If I give border to a paper component using withBorder prop which's a parent of any other paper component, the children component get's all the styles as well, and it wont' even override even if I specify it via props.
What version of @mantine/* packages do you have in package.json? (Note that all @mantine/* packages must have the same version in order to work correctly)
7.1.0
If possible, please include a link to a codesandbox with the reproduced problem
No response
Do you know how to fix the issue
None
Are you willing to participate in fixing this issue and create a pull request with the fix
None
Possible fix
No response
The text was updated successfully, but these errors were encountered: