material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

Prop style is not used in Paper component

Open eyscode opened this issue 11 years ago • 1 comments

Love your library, I've been using it for a while in a few projects. I also like the breaking changes in v0.8, but with that big change, some things are not clear for me, for instance if I read the docs of one of the simplest components you have like "Paper", it says:

Props

style object optional

Override the inline-styles of Paper's root element.

but when I use a Paper inside my component and write something like:

<Paper style={{backgroundColor:Colors.grey100}}> 

I hope that paper will have my backgroundColor and not the backgroundColor of the theme, or am I wrong?

eyscode avatar May 27 '15 19:05 eyscode

Forget it, it was a wrong import of Colors LOL. Rather than: import {Colors} from "material-ui/lib/styles"; I wrote: import Colors from "material-ui/lib/styles";

eyscode avatar May 27 '15 19:05 eyscode