I am trying to override the Grid item style, specifically the padding, using the classes prop.
They way the object key is generated for the grid item padding it makes it very difficult to override it.
I want to use the grid system to generate 2 rows AppBar. The padding of the Grid item makes the AppBar not resize in height as the standard AppBar would do when the width changes.
| Tech | Version |
|--------------|---------|
| Material-UI | beta13 |
| React | 15.6.2 |
| browser | Chrome |
| etc | |
I'm assuming you are referring to this style:
https://github.com/callemall/material-ui/blob/1c3297dd5008b255f385084ff140080215c61c7c/src/Grid/Grid.js#L74-L76
You have two options. You can disable the padding with spacing={0}
or increase the specificity to match this selector (.a .b
or !important
)
Most helpful comment
I'm assuming you are referring to this style:
https://github.com/callemall/material-ui/blob/1c3297dd5008b255f385084ff140080215c61c7c/src/Grid/Grid.js#L74-L76
You have two options. You can disable the padding with
spacing={0}
or increase the specificity to match this selector (.a .b
or!important
)