-
Notifications
You must be signed in to change notification settings - Fork 55
Add progress bar tokens #1242
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
Add progress bar tokens #1242
Conversation
🦋 Changeset detectedLatest commit: 2a4c52b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Design Token Diff (CSS)
|
Design Token Diff (StyleLint)The message is too long to be displayed here. For more details, please check the job summary. |
Design Token Diff (Figma)The message is too long to be displayed here. For more details, please check the job summary. |
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.
Pull Request Overview
This PR adds new design tokens for progress bar components to support high contrast themes. The implementation provides specific color overrides for various theme variants while maintaining backwards compatibility with existing designs.
- Introduces comprehensive progress bar tokens with track background/border colors and semantic item colors
- Implements high contrast theme support with specific color overrides for accessibility
- Adds changeset documentation for the new feature
Reviewed Changes
Copilot reviewed 2 out of 134 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/tokens/component/progressBar.json5 | Defines complete progress bar token structure with track styling and semantic color variants |
| .changeset/beige-pets-lie.md | Documents the minor version change for the new progress bar tokens |
| 'dark-high-contrast': '{progressBar.track.bgColor}', | ||
| 'dark-dimmed-high-contrast': '{progressBar.track.bgColor}', | ||
| 'dark-protanopia-deuteranopia-high-contrast': '{progressBar.track.bgColor}', | ||
| 'dark-tritanopia-high-contrast': '{progressBar.track.bgColor}', |
Copilot
AI
Aug 4, 2025
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.
These circular references create a dependency loop where progressBar.track.borderColor references progressBar.track.bgColor, but progressBar.track.bgColor itself has overrides that could potentially reference back. Consider using direct base color tokens instead of self-referential tokens to avoid potential resolution issues.
| 'dark-tritanopia-high-contrast': '{progressBar.track.bgColor}', | |
| 'dark-high-contrast': '{bgColor.inverse}', | |
| 'dark-dimmed-high-contrast': '{bgColor.inverse}', | |
| 'dark-protanopia-deuteranopia-high-contrast': '{bgColor.inverse}', | |
| 'dark-tritanopia-high-contrast': '{bgColor.inverse}', |
llastflowers
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.
✅
Adds
progressBartokens to support high contrast themes. Default themes will respect the existing design, while high contrast themes will include custom item colors and an overall track outline.Check out Primer React for a visual: https://primer-6385406b5d-13348165.drafts.github.io/storybook/?path=/story/components-progressbar-features--all-colors&globals=colorScheme:all