Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix how
mix
from wonder-blocks-color
formats single-digit color c…
…omponents (#2065) ## Summary: Previously, if the red, green, or blue component was less than 16, its hex digit would be repeated (e.g. `f` would become `ff`). With this change, we preserve the real value of the number by prepending a `0` instead (e.g. `f` becomes `0f`). ## Test plan: `yarn run jest packages/wonder-blocks-color/src/util/__tests__/utils.test.ts` Author: timmcca-be Reviewers: somewhatabstract Required Reviewers: Approved By: somewhatabstract Checks: ✅ Chromatic - Get results on non-draft regular PRs (ubuntu-latest, 16.x), ✅ Test (ubuntu-latest, 16.x, 2/2), ✅ Test (ubuntu-latest, 16.x, 1/2), ✅ Check build sizes (ubuntu-latest, 16.x), ✅ Lint (ubuntu-latest, 16.x), ✅ Chromatic - Build on non-draft regular PRs / chromatic (ubuntu-latest, 16.x), ⏭ Chromatic - Skip on Release PR (changesets), ✅ Prime node_modules cache for primary configuration (ubuntu-latest, 16.x), ✅ gerald, ⏭ dependabot Pull Request URL: #2065
- Loading branch information