From 051f02f3425d911a0e88d9402db2a3d1582b55cf Mon Sep 17 00:00:00 2001 From: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue, 28 May 2024 20:49:43 -0400 Subject: [PATCH] Update Avatar props (#2352) * avatar accepts null text * update generated stories * changeset * Update spotty-ghosts-play.md --- .changeset/spotty-ghosts-play.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/spotty-ghosts-play.md diff --git a/.changeset/spotty-ghosts-play.md b/.changeset/spotty-ghosts-play.md new file mode 100644 index 0000000000..6caf6f98f2 --- /dev/null +++ b/.changeset/spotty-ghosts-play.md @@ -0,0 +1,5 @@ +--- +'@leafygreen-ui/avatar': patch +--- + +Avatar `text` prop can now be `null` even when `format === 'text'`, allowing for a more seamless integration with the `getInitials` function. If `text === null`, the Avatar will fall back to `Icon` format.