Skip to content

Commit

Permalink
[List] Fix padding issue when setting dense and disablePadding at the…
Browse files Browse the repository at this point in the history
… same time (#7515) (#7529)

Fix issue for: padding issue when setting dense and disablePadding at the same time (#7515)

Link: #7515
  • Loading branch information
markselby9 authored and oliviertassinari committed Jul 24, 2017
1 parent 4deee4b commit 32928c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/List/List.js
Expand Up @@ -101,7 +101,7 @@ class List extends Component<DefaultProps, Props, void> {
const className = classNames(
classes.root,
{
[classes.dense]: dense,
[classes.dense]: dense && !disablePadding,
[classes.padding]: !disablePadding,
[classes.subheader]: subheader,
},
Expand Down

0 comments on commit 32928c0

Please sign in to comment.