-
Notifications
You must be signed in to change notification settings - Fork 30
Fix choice cards pill colour #15247
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
base: main
Are you sure you want to change the base?
Fix choice cards pill colour #15247
Conversation
| } | ||
|
|
||
| export interface ChoiceCardSettings { | ||
| export interface ChoiceCardDesignSettings { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed for clarity - this comes from the banner design tool
|
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
AnastasiiaBalenko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Currently in PROD the pill is red because that's what SDC sets in the choice cards settings if there's a discount:

The choice cards component "pill" colour can be configured in two ways:
Currently in the client the second overrides the first. But for banners we'd like to prioritise the banner design tool colours.
This PR changes the pill colours logic to do this.
For epics we'll still set the pill colour based on the choice card settings.
I've also added new storybook entries for the choice cards component which demonstrate this new logic