Material-ui: Don't enforce white background in Stepper

Created on 22 Nov 2017  路  7Comments  路  Source: mui-org/material-ui

It cuts across the Nav bar's shadow when put right underneath..

stepper

Most helpful comment

   <Stepper
      activeStep={activeStep}
      alternativeLabel
      style={{ backgroundColor: "transparent" }}
    >

All 7 comments

Thanks for the feedback. It isn't enforced though, it's just the default, although I can see an argument for not having a default. In your case though you can just add top margin to it.

@mbrookes How do we go about changing it? I don't think I saw a backgroundColor property in the docs and I can see that the Stepper has a Paper component inside it for some reason (which AFAIK is the reason for the #fff background) I'm not sure how I can change that.

Yes adding a few pixels margins would work too, but I think the default spacing is just right. Just making the background transparent would be ideal 馃槃

@AdityaAnand1 What version?

Latest (next) v1 branch

Was about to say, it doesn't look like v0.x uses Paper, so...

...as Paper is the root component, take your pick. Passing in a className for a class that overrides background-color is probably easiest.

@mbrookes and @AdityaAnand1 How did you make the background-color to transparent?

   <Stepper
      activeStep={activeStep}
      alternativeLabel
      style={{ backgroundColor: "transparent" }}
    >
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ryanflorence picture ryanflorence  路  3Comments

zabojad picture zabojad  路  3Comments

reflog picture reflog  路  3Comments

ericraffin picture ericraffin  路  3Comments

sys13 picture sys13  路  3Comments