mui / mui/material-ui

[material-ui][Avatar] Stop insisting on using an icon for an empty avatar

Open
#41,291 17 comments 1 reaction 1 assignee View on GitHub

@siriwatknp is already working on this.

Since Feb 27, 2024.

discussion scope: avatar
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

Steps to reproduce

Link to live example: https://mui.com/material-ui/react-avatar/

Steps:

  1. Have any Avatar component without any content.
Current behavior

In Material UI v5.15.7, a change was made that forces any Avatar component that does not have content to fallback to the Material Design "person" icon. This seems to me like a breaking change, and incredibly annoying behavior at that too since there is no way to disable this.

Expected behavior

When I define an Avatar without content, I expect it to not have content.

Context

No response

Your environment

No response

Search keywords: avatar fallback

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.