Material-ui: [Dialog] change wrapper background color? (the semi opacity wrapper div)

Created on 24 Jan 2017  路  6Comments  路  Source: mui-org/material-ui

What is the best elegance way to do that?

question

Most helpful comment

const theme = createMuiTheme({
  overrides: {
    MuiBackdrop: {
      root: {
        backgroundColor: 'rgba(0,0,0,0.2)'
      }
    }
  }
});

Is that what you are looking for?

All 6 comments

Can you show us a screenshot of what you are trying to do?

screen shot 2017-01-25 at 12 51 08 pm

The background that applied around the dialog, which you can see outside the dialog in the attached screenshot.

const theme = createMuiTheme({
  overrides: {
    MuiBackdrop: {
      root: {
        backgroundColor: 'rgba(0,0,0,0.2)'
      }
    }
  }
});

Is that what you are looking for?

const theme = createMuiTheme({
  overrides: {
    MuiBackdrop: {
      root: {
        backgroundColor: 'rgba(0,0,0,0.2)'
      }
    }
  }
});

Is that what you are looking for?

@pedrogscruz where does this go ? In the Javascript file ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rbozan picture rbozan  路  3Comments

activatedgeek picture activatedgeek  路  3Comments

TimoRuetten picture TimoRuetten  路  3Comments

FranBran picture FranBran  路  3Comments

iamzhouyi picture iamzhouyi  路  3Comments