-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[ProgressBar] Add color prop #3415
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
Conversation
| .colorHighlight { | ||
| --p-progressbar-background: var(--p-surface-neutral, #{color('sky')}); | ||
| --p-progressbar-indicator: var(--p-border-highlight, #{color('teal')}); | ||
| } |
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.
Not sure component-specific custom properties are the right way to fix this, guidance would be appreciated.
|
🟢 This pull request modifies 4 files and might impact 1 other files. Details:All files potentially affected (total: 1)📄
|
|
Note: This isn't urgent, and will require a chat with designers to agree on whether this should make it into Polaris and if the colors chosen are appropriate. |
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.
I like this approach 👍 Just make sure to change the prop description
4eab9e5 to
9e09ba7
Compare
|
This last merge makes this change compatible with the default new design language! I'll ship it soon. |
|
FYI @whizkydee, it'd be great if you could make time to update the OnboardingTaskCard component over the next few weeks. |
size-limit report
|
WHY are these changes introduced?
This will fix an issue where a home card uses imperative language to describe the color prop's possible values in this polaris-next fork of ProgressBar in web.
This forked ProgressBar is used in two Home Cards, one of them being:
I couldn't reproduce the other one, but the code shows it uses a "green" color:
https://github.com/Shopify/web/blob/master/app/sections/Home/HomeIndex/components/Onboarding/components/OnboardingFooter/components/OnboardingProgressBar/OnboardingProgressBar.tsx#L32
WHAT is this pull request doing?
Adds a new prop using the new color system, that will help us remove this fork from polaris-next.
How to 🎩
🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines
Check out the new ProgressBar example in Storybook.
🎩 checklist
README.mdwith documentation changes