Skip to content

CardHeader de-centered avatar #27654

Open
@vantaboard

Description

Styling in CardHeader.js de-centers avatar.

  /* Styles applied to the avatar element. */
  avatar: {
    flex: '0 0 auto',
    marginRight: 16,
  },

Current workaround (TypeScript):

const theme = createTheme({
  components: {
    MuiCardHeader: {
      styleOverrides: {
        avatar: {
          marginRight: "unset",
        },
      },
    },
  },
});

Metadata

Assignees

No one assigned

    Labels

    component: avatarThis is the name of the generic UI component, not the React module!

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions