segmentio / evergreen

🌲 Evergreen React UI Framework by Segment
https://evergreen.segment.com
MIT License
12.36k stars 833 forks source link

Badge color should not have 'automatic' in its typing #1636

Closed brandongregoryscott closed 1 year ago

brandongregoryscott commented 1 year ago

Related to #1592

The type union for BadgeOwnProps.color should not include automatic.

https://github.com/segmentio/evergreen/blob/0a89c2bd36c717740a83b0cbd6dfccc5dfb05be3/index.d.ts#L595

I think this was a copy/paste from the Avatar props, since it has a hashing function based on the user's initials. This is what it looks like if you pass automatic currently:

image