Skip to content

Commit

Permalink
fix: correct progress color tokens (#1998)
Browse files Browse the repository at this point in the history
* fix: correct color tokens

* docs: update value in react story
  • Loading branch information
pixelflips authored and kajabi-bot committed Oct 8, 2024
1 parent dbb02c1 commit b6a56b5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
animate = component.animate.nil? ? true : component.animate
content = component.label ? "#{component.label}: " : ""
content << "#{component.percent}%&nbsp;progress"
color = component.color || SageTokens::COLOR_PALETTE[:MERCURY_50]
color = component.color || SageTokens::COLOR_PALETTE[:MERCURY_500]
%>

<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $-progress-bar-height: sage-spacing(xs);
.sage-progress-bar__value {
transform-origin: center left;
height: 100%;
background-color: var(--progress-bar-value-color, sage-color(sage, 300));
background-color: var(--progress-bar-value-color, sage-color(mercury, 500));
border-radius: sage-border(radius-small);

.sage-modal__header & {
Expand Down
2 changes: 1 addition & 1 deletion packages/sage-react/lib/ProgressBar/ProgressBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ ProgressBar.defaultProps = {
animate: true,
backgroundColor: null,
className: null,
color: ProgressBar.COLORS.MERCURY_50,
color: ProgressBar.COLORS.MERCURY_500,
disableTooltip: false,
displayPercent: false,
label: null,
Expand Down
2 changes: 1 addition & 1 deletion packages/sage-react/lib/ProgressBar/ProgressBar.story.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Template = (args) => <ProgressBar {...args} />;
export const Default = Template.bind({});
export const CustomColor = Template.bind({});
CustomColor.args = {
color: ProgressBar.COLORS.PURPLE_50,
color: ProgressBar.COLORS.PURPLE_300,
backgroundColor: ProgressBar.COLORS.ORANGE_100,
label: 'Cloning product',
percent: '44',
Expand Down

0 comments on commit b6a56b5

Please sign in to comment.