From c7c5fa6f2ed2cb5903766c25161e1f347518b2ac Mon Sep 17 00:00:00 2001 From: Xavier Lozano Carreras Date: Thu, 29 Oct 2026 16:44:59 +0100 Subject: [PATCH] Import @wordpress/base-styles modules directly in packages/podcast The project declares @wordpress/base-styles itself, so the @automattic/jetpack-base-styles/gutenberg-base-styles wrapper adds nothing. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01K4t4VY7ojGc1sr9Cb1z84Z --- ...te-jetpack-2754-base-styles-direct-imports | 5 +++++ .../src/blocks/podcast-episode/style.scss | 22 +++++++++---------- 2 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 projects/packages/podcast/changelog/update-jetpack-2754-base-styles-direct-imports diff --git a/projects/packages/podcast/changelog/update-jetpack-2754-base-styles-direct-imports b/projects/packages/podcast/changelog/update-jetpack-2754-base-styles-direct-imports new file mode 100644 index 000000000000..379fc714685a --- /dev/null +++ b/projects/packages/podcast/changelog/update-jetpack-2754-base-styles-direct-imports @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Import @wordpress/base-styles modules directly instead of through the jetpack-base-styles wrapper. No change to the built CSS. + + diff --git a/projects/packages/podcast/src/blocks/podcast-episode/style.scss b/projects/packages/podcast/src/blocks/podcast-episode/style.scss index 0834544e0d35..a882110969e2 100644 --- a/projects/packages/podcast/src/blocks/podcast-episode/style.scss +++ b/projects/packages/podcast/src/blocks/podcast-episode/style.scss @@ -1,7 +1,7 @@ /** * Podcast Episode block shared styles (editor + front-end). */ -@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb; +@use "@wordpress/base-styles/colors"; $jetpack-podcast-episode-radius: 6px; $jetpack-podcast-episode-gap: 16px; @@ -13,9 +13,9 @@ $jetpack-podcast-episode-gap: 16px; gap: $jetpack-podcast-episode-gap; align-items: flex-start; padding: $jetpack-podcast-episode-gap; - border: 1px solid gb.$gray-200; + border: 1px solid colors.$gray-200; border-radius: $jetpack-podcast-episode-radius; - background-color: gb.$white; + background-color: colors.$white; @media (max-width: 600px) { flex-direction: column; @@ -58,7 +58,7 @@ $jetpack-podcast-episode-gap: 16px; gap: 8px; margin: 0; font-size: 0.85em; - color: gb.$gray-700; + color: colors.$gray-700; text-transform: uppercase; letter-spacing: 0.03em; } @@ -72,8 +72,8 @@ $jetpack-podcast-episode-gap: 16px; font-weight: 600; line-height: 1.4; border-radius: 999px; - background-color: gb.$gray-100; - color: gb.$gray-900; + background-color: colors.$gray-100; + color: colors.$gray-900; } .jetpack-podcast-episode__badge--trailer { @@ -87,8 +87,8 @@ $jetpack-podcast-episode-gap: 16px; } .jetpack-podcast-episode__badge--explicit { - background-color: gb.$gray-900; - color: gb.$white; + background-color: colors.$gray-900; + color: colors.$white; font-family: monospace; } @@ -114,7 +114,7 @@ $jetpack-podcast-episode-gap: 16px; gap: 12px; margin: 0; font-size: 0.9em; - color: gb.$gray-700; + color: colors.$gray-700; } .jetpack-podcast-episode__player { @@ -169,7 +169,7 @@ $jetpack-podcast-episode-gap: 16px; } .jetpack-podcast-episode__person-role { - color: gb.$gray-700; + color: colors.$gray-700; font-size: 0.85em; } @@ -184,7 +184,7 @@ $jetpack-podcast-episode-gap: 16px; .jetpack-podcast-episode__soundbite-time { flex: 0 0 auto; font-variant-numeric: tabular-nums; - color: gb.$gray-700; + color: colors.$gray-700; } // Click-to-seek button wraps the row content. Reset the browser's default