[material-ui][Avatar] Stop insisting on using an icon for an empty avatar
Open
@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:
- Have any
Avatarcomponent 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.