Avatar: add option to set the background color #4900
Labels
0 - new
New issues that need assignment.
Calcite (dev)
Issues logged by Calcite developers.
design-tokens
Issues requiring design tokens.
enhancement
Issues tied to a new feature or request.
estimate - 2
Small fix or update, may require updates to tests.
good first issue
Issues that can be worked on by contributors new to calcite-components.
p - low
Issue is non core or affecting less that 10% of people using the library
Milestone
Description
Add a CSS variable or property that allows users to change the background color of
calcite-avatar
. That is a pretty common use case in profile configuration. The app developer would have to choose colors that meet contrast ratio guidelines, and then the user could select one of those colors in the profile UI.Acceptance Criteria
A CSS variable (my preference) or property for changing
calcite-avatar
's background color.Relevant Info
From https://community.esri.com/t5/calcite-design-system-questions/avatar-choose-colour-and-3-character-id-display/m-p/1191371
Which Component
calcite-avatar
Example Use Case
Like how Esri Community lets you choose different background colors for globes:
Only it would be different background colors w/ initials for
calcite-avatar
.The text was updated successfully, but these errors were encountered: