calcite-design-system icon indicating copy to clipboard operation
calcite-design-system copied to clipboard

Avatars of different users (different usernames) have the same background

Open Anastasiia-Boleiko opened this issue 2 years ago • 2 comments

Actual Behavior

Avatars of different users (with different usernames) have the same background colors in some cases. Screenshot 2023-02-20 at 17 54 44

In the docs it was written:

A randomly generated AA accessible background will fill behind the initials. That generated fill will stay assigned to the user until their account is deleted or an image is used.

Expected Behavior

Avatars of different users (with different usernames) have different background colors.

Reproduction Sample

https://codepen.io/anastasiia-zrh/pen/wvEMKxq

Reproduction Steps

  1. Add several calcite-avatar elements to a page
  2. Specify different usernames (for example: john_doe, john_doe1, john_doe2)

Reproduction Version

v1.0.5

Relevant Info

No response

Regression?

No response

Impact

Initials and avatar background simplify finding a needed user (it's like a visual mapping where color+initials=user, which decreases cognitive load) for those, who do not use AT. It would be great to have different avatar backgrounds for different users.

Esri team

ArcGIS Urban

Anastasiia-Boleiko avatar Feb 20 '23 16:02 Anastasiia-Boleiko

If the described case is an expected behavior from your perspective, maybe it would be possible to implement it as an enhancement of the calcite-avatar component. Thanks a lot in advance!

Anastasiia-Boleiko avatar Feb 20 '23 17:02 Anastasiia-Boleiko

Installed and assigned for verification.

github-actions[bot] avatar May 09 '24 23:05 github-actions[bot]

Verified in 2.9.0-next.9 with https://codepen.io/anastasiia-zrh/pen/wvEMKxq:

image

geospatialem avatar May 14 '24 22:05 geospatialem