Skip to content

Commit

Permalink
Merge pull request #1570 from cozy/nav-list-icon
Browse files Browse the repository at this point in the history
fix: ListItemIcon size is fixed
  • Loading branch information
ptbrowne authored Sep 22, 2020
2 parents 3dedd2e + 6f1575a commit d3d2327
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion react/MuiCozyTheme/ListItemIcon/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import { withStyles } from '@material-ui/core/styles'
import ListItemIcon from '@material-ui/core/ListItemIcon'

export default ListItemIcon
export default withStyles({
root: {
width: 32,
justifyContent: 'center'
}
})(ListItemIcon)
4 changes: 2 additions & 2 deletions react/NavigationList/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ const NavigationListExample = ({ style }) => {
<NavigationListSection>
<ListItem>
<ListItemIcon>
<Icon icon="gear" width="16" height="16" />
<Icon icon="gear" width="32" height="32" />
</ListItemIcon>
<ListItemText primaryText="General settings" />
<ListItemText primaryText="General settings (large icon does not change size of icon area)" />
<ListItemSecondaryAction>
<Icon
icon="right"
Expand Down

0 comments on commit d3d2327

Please sign in to comment.