Skip to content

CenteredListItemIcon #17681

Description

@lcswillems
  • I have searched the issues of this repository and believe that this is not a duplicate.

Motivation

Currently, if I display a list of icon items below a list of list avatar items, it gives this:

image

This looks broken to me. The icons are not aligned with the avatars. I would prefer this:

image

Summary

The idea is to create a CenteredListItemIcon component:

const CenteredListItemIcon = ({ children = undefined, ...props }) => (
  <ListItemIcon {...props}>
    <div
      style={{
        width: '40px',
        display: 'flex',
        justifyContent: 'center'
      }}
    >
      {children}
    </div>
  </ListItemIcon>
);

Or just add an align attribute to the ListItemIcon component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    design: materialThis is about Material Design, please involve a visual or UX designer in the processscope: menuChanges related to the menu.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions