Skip to content

Commit

Permalink
fix: correct css var in color modal (#2349)
Browse files Browse the repository at this point in the history
we were displaying the wrong css variable in our color modals on
storefront and theme.
First reported in Slack
  • Loading branch information
Barsnes authored Aug 29, 2024
1 parent 803744e commit dbdf38f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/colors/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,5 +358,5 @@ export const getBaseColor = (color: CssColor) => {
};

export const getCssVariable = (colorType: string, colorNumber: ColorNumber) => {
return `--ds-${colorType}-${getColorNameFromNumber(colorNumber).toLowerCase().replace(/\s/g, '-')}`;
return `--ds-color-${colorType}-${getColorNameFromNumber(colorNumber).toLowerCase().replace(/\s/g, '-')}`;
};

0 comments on commit dbdf38f

Please sign in to comment.