You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It doesn't work with styled components. Simply no styling takes effect. I'm guessing it's because the className property passed to the component is not properly passed to the internal components.
Steps to reproduce
Do something like the code below
import styled from 'styled-components';
import { DropzoneArea as MuiDropZone } from 'material-ui-dropzone';
export const DropZoneArea = styled(MuiDropZone)`
height: 100px;
&.MuiDropzoneArea-textContainer{
color: red;
}
`;
You'll see that none of the styles are applied.
Expected behavior
Styles should be applied when using styled components.
Versions
OS: Ubuntu
Browser: Chrome
@material-ui/core version: 4.11.4
material-ui-dropzone version: 3.5.0
styled-components version: 5.3.0
The text was updated successfully, but these errors were encountered:
pedrokohler
changed the title
oesn't work with styled components
It doesn't work with styled components
Jul 31, 2021
Bug Report
Describe the bug
It doesn't work with styled components. Simply no styling takes effect. I'm guessing it's because the className property passed to the component is not properly passed to the internal components.
Steps to reproduce
Do something like the code below
You'll see that none of the styles are applied.
Expected behavior
Styles should be applied when using styled components.
Versions
@material-ui/core
version: 4.11.4material-ui-dropzone
version: 3.5.0styled-components
version: 5.3.0The text was updated successfully, but these errors were encountered: