equinor / design-system

The Equinor design system
MIT License
119 stars 63 forks source link

Allow setting more colors to chips #3335

Open yusijs opened 6 months ago

yusijs commented 6 months ago

Today the Chip element can only be either active, error or "neutral", which is a bit limiting.

I would like to have "all" the interactive colors as variants, e.g:

<Chip variant={'info'}>..</Chip>
<Chip variant={'success'}>..</Chip>
<Chip variant={'warning'}>..</Chip>
<Chip variant={'error'}>..</Chip>
<Chip variant={'primary'}>..</Chip>
<Chip variant={'accent'}>..</Chip>

While this can obviously be overriden very easily, this feels like one of those things where EDS should offer more sane defaults out of the box

Prior art can be found in e.g MaterialUI (still rather limited tbh)

BirteThornquist commented 6 months ago

The interactive color variants will be covered by the new chip component in EDS 2.0.