❗ GroupAvatar #1126
Replies: 9 comments
-
How does Microsoft deals with that? |
Beta Was this translation helpful? Give feedback.
-
Not sure what the magic between the Microsoft logic is but it looks like it goes for initials, sometimes figuring out how to do composed names (with dashes) but if it gets too complicated, they go for just the first initial of the name. |
Beta Was this translation helpful? Give feedback.
-
Before moving on a clear spec of the Microsoft logic would be necessary, do we have ways to figure this out? Can any fullstack dev helps here? |
Beta Was this translation helpful? Give feedback.
-
@alexasselin008 any thoughts on that issue? |
Beta Was this translation helpful? Give feedback.
-
Can we show some examples of where this would be used in our applications? I believe the Avatar component was taken from fluid ui : https://developer.microsoft.com/en-us/fluentui#/controls/web/persona They have a logic on how the generate user placeholder icons. As for the groups/teams, I think every groups have an image. If there is no user uploaded image, there is an image with initials that is returned. So would this component be used as a placeholder while we fetch the image? For instance, in our group list, here is an example of a group avatar with no user's uploaded image: |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
The persona component in Fluent has a slightly different behavior: https://developer.microsoft.com/en-us/fluentui#/controls/web/persona But the initials are not handled either. |
Beta Was this translation helpful? Give feedback.
-
@alexasselin008 in that case we should not support initials either? |
Beta Was this translation helpful? Give feedback.
-
Is this component still in play? If so, I believe it should be moved to Github Discussion until a formal proposal is available. |
Beta Was this translation helpful? Give feedback.
-
Description
Initially discussed in #694
Avatar works great for a user, with its placeholder using the initials of the user's Firstname and Lastname, it could be used also for a Group with a more complex name. This includes names with more than 2 capitalized word (for example Name, Name and Name) or a simple name with and
and
in the middle (for example Something and Sons), or some other funky names with dashes in the middle (for example Management - People). In all of these cases, the 2 letters Initials of the Avatar component are wrong (NN for the first example, Sa for the second and M- for the last).GroupAvatar
could allow for a more complex filtering of the name to still output the correct name as aria-label while outputting the correct Initials as placeholder.Beta Was this translation helpful? Give feedback.
All reactions