Skip to content
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

Styling internals of the dialog #80

Closed
mikiasmohamed opened this issue Oct 29, 2019 · 2 comments · Fixed by #158
Closed

Styling internals of the dialog #80

mikiasmohamed opened this issue Oct 29, 2019 · 2 comments · Fixed by #158
Milestone

Comments

@mikiasmohamed
Copy link

I wanted to add new styles such as padding, text color, background etc. I tried using the dropzoneClass attribute to do so. But the UI is not updating. Can you please provide an example on how to add custom styles?

@Liiva
Copy link

Liiva commented Jan 17, 2020

I'm not sure what component you intend with "dialog" but I styled the DropzoneArea using this code snippet, hopefully this helps.

import makeStyles from "@material-ui/core/styles/makeStyles";

const useStyles = makeStyles(theme => ({
  dropZone: {
    minHeight: "100%",
    marginBottom: "10px",
    paddingBottom: "10px"
  },
  dropzoneParagraph: {
    fontSize: "1rem"
  }
}));

const YourComponent = ({ someProp, ...props }) => {
  const classes = useStyles(props);

  return (
      <DropzoneArea
        classes={classes}
        // ... other dropzone area props
      />
  );
}

@panz3r
Copy link
Contributor

panz3r commented Apr 25, 2020

Related to #125 , improving support for MUI Theme should allow changing internal dialog style also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants