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

Refactor `avatar` to make sure it never fails to generate a valid hex.

Open Elijbet opened this issue 1 year ago • 2 comments

Description

private generateFillColor function should never generate an invalid hex

Proposed Advantages

Simplify code to prevent errors in coordinating background and foreground colors, as this is important for validating contrast.

Which Component

avatar

Relevant Info

Stems from https://github.com/Esri/calcite-components/pull/6528 - refer to this comment for specifics in the PR.

Elijbet avatar Mar 14 '23 07:03 Elijbet