From 27681eddf6f0b4db5154d0fb64ea6554da5e8249 Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Fri, 26 Jan 2024 04:32:56 +0900 Subject: [PATCH] Components: Expand theming support in COLORS (#58097) * Components: Expand theming support in COLORS * Update changelog * Update snapshots * Fix gray-900 var I'll leave this here with a deprecation marking, just to inform people that they should be using `foreground` when they try and reach for gray-900. * Completely match theme-variables scss * Replace `ui.textDark` to `theme.foregroundInverted` * Replace with color-mix * Fix changelog placement --- packages/components/CHANGELOG.md | 1 + .../card/test/__snapshots__/index.tsx.snap | 6 +- .../test/__snapshots__/index.test.js.snap | 16 ++--- .../styles/resize-tooltip.styles.ts | 6 +- .../test/__snapshots__/index.tsx.snap | 16 ++--- .../components/src/utils/colors-values.js | 68 ++++++++++++------- 6 files changed, 68 insertions(+), 45 deletions(-) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index a8de9010dfc30..59cce32e06e84 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -10,6 +10,7 @@ - `Guide`, `Modal`: Restore accent color themability ([#58098](https://github.com/WordPress/gutenberg/pull/58098)). - `DropdownMenuV2`: Restore accent color themability ([#58130](https://github.com/WordPress/gutenberg/pull/58130)). +- Expand theming support in the `COLORS` variable object ([#58097](https://github.com/WordPress/gutenberg/pull/58097)). ## 25.16.0 (2024-01-24) diff --git a/packages/components/src/card/test/__snapshots__/index.tsx.snap b/packages/components/src/card/test/__snapshots__/index.tsx.snap index b86714d86636a..0b723732e3dba 100644 --- a/packages/components/src/card/test/__snapshots__/index.tsx.snap +++ b/packages/components/src/card/test/__snapshots__/index.tsx.snap @@ -26,7 +26,7 @@ Snapshot Diff:
@@ -43,7 +43,7 @@ Snapshot Diff: