-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: StatusIndicator - Support yellow colorOverride prop #1643
Comments
Hello Coltin, Thank you for your feature request to add a Our current design allows for overrides of specific colors to maintain consistency across different states:
Could you please elaborate on your specific use-case that necessitates a yellow color override? Knowing more about it will help us better understand the requirement and evaluate the feasibility of adding this feature. Thank you! |
Use case is pretty simple, I have need of using a yellow color with a different icon than (!) due to (!) drawing more attention to the area than my users want. Pending icon is more appropriate in this case because it's waiting for something anyways (but gray is too easy to miss). Regardless of case, yellow is now the color for the warning status rather than red in CloudScape. It is Alert/Flashbar/StatusIndicator components so it makes sense you should be able to override to any of the colors you can get to with a normal variant. I.e. if I can override to red why can't I override to yellow. Looking at the code, effort seems minimal. Should just be adding another option and pointing at the existing warning color design token. Thanks |
Hi, the yellow value for |
Noted, thank you for getting it in! |
Description
Support
yellow
colorOverride
prop in StatusIndicator component.Currently the
warning
status indicator has a yellow color, but you cannot usecolorOverride
to change a different icon to coloryellow
.This would allow the color yellow for any status indicator icon i.e.
Current colors here do not list/allow yellow: https://github.com/cloudscape-design/components/blob/main/src/status-indicator/internal.tsx#L72
Code of Conduct
The text was updated successfully, but these errors were encountered: