fix: correct dark value in getLightDarkValue() for --rh-color-surface#170
fix: correct dark value in getLightDarkValue() for --rh-color-surface#170bennypowers merged 3 commits intomainfrom
--rh-color-surface#170Conversation
🦋 Changeset detectedLatest commit: e9a7a21 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 |
✅ Deploy Preview for red-hat-design-tokens ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
bennypowers
left a comment
There was a problem hiding this comment.
I got this in the DP for --rh-color-surface's values:
<samp style="background-color: var(--rh-color-surface-lightest);"></samp>
<samp style="background-color: var(--rh-color-surface-lighter);"></samp>https://deploy-preview-170--red-hat-design-tokens.netlify.app/#color-surface
likewise for surface status colors
Interesting, it builds As well as I'll look into the docs code and take a look at how it's reading the values and maybe it's doing the same thing by grabbing the first two, rather than the first and last. |
|
if you can validate the built package (with the npm pack, untar, copy trick) against rhds docs, that's good enough for me. |
|
@bennypowers docs fixed and
|

What I did
--rh-color-surfaceingetLightDarkValue().Because
rh-color-surfacehas many values, not just two possible, we need to grab the first and last in the array instead of just destructuring the array expecting the first two to be correct.Closes RedHat-UX/red-hat-design-system#2440