diff --git a/projects/plugins/jetpack/_inc/client/components/settings-nav-tabs/style.scss b/projects/plugins/jetpack/_inc/client/components/settings-nav-tabs/style.scss index 99e78610b266..29c4d5ad38ab 100644 --- a/projects/plugins/jetpack/_inc/client/components/settings-nav-tabs/style.scss +++ b/projects/plugins/jetpack/_inc/client/components/settings-nav-tabs/style.scss @@ -1,4 +1,4 @@ -@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb; +@use "@wordpress/base-styles/colors"; // --spacing-base is provided by admin-ui's ThemeProvider in some contexts, // but not guaranteed here. Define a local fallback. @@ -25,7 +25,7 @@ $spacing-base: var(--spacing-base, 8px); display: flex; align-items: center; position: relative; - border-bottom: 1px solid gb.$gray-100; + border-bottom: 1px solid colors.$gray-100; padding-inline: calc(#{$spacing-base} * 3); // 24px — matches admin-ui header background-color: #fff; diff --git a/projects/plugins/jetpack/changelog/update-jetpack-2754-base-styles-direct-imports b/projects/plugins/jetpack/changelog/update-jetpack-2754-base-styles-direct-imports new file mode 100644 index 000000000000..a84a1fb26da7 --- /dev/null +++ b/projects/plugins/jetpack/changelog/update-jetpack-2754-base-styles-direct-imports @@ -0,0 +1,5 @@ +Significance: patch +Type: other +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/plugins/jetpack/extensions/blocks/blogging-prompt/style.scss b/projects/plugins/jetpack/extensions/blocks/blogging-prompt/style.scss index 5eeff091af82..e8347f41aaf5 100644 --- a/projects/plugins/jetpack/extensions/blocks/blogging-prompt/style.scss +++ b/projects/plugins/jetpack/extensions/blocks/blogging-prompt/style.scss @@ -1,7 +1,8 @@ -@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb; +@use "@wordpress/base-styles/colors"; +@use "@wordpress/base-styles/variables"; .jetpack-blogging-prompt { - border: 1px solid gb.$gray-300; + border: 1px solid colors.$gray-300; border-radius: 2px; box-sizing: border-box; padding: 24px; @@ -11,7 +12,7 @@ background-position: -5px center; background-size: 24px 24px; font-size: 14px; - margin-bottom: gb.$grid-unit-20; + margin-bottom: variables.$grid-unit-20; padding-inline-start: 22px; &.is-bloganuary-icon { @@ -23,7 +24,7 @@ &__text { font-size: 24px; - margin-bottom: gb.$grid-unit-20; + margin-bottom: variables.$grid-unit-20; } &__answers-link { @@ -37,7 +38,7 @@ } &__answers-gravatar { - border: 2px solid gb.$white; + border: 2px solid colors.$white; border-radius: 50%; height: 24px; vertical-align: middle; @@ -58,8 +59,8 @@ &.is-style-quote { border: none; - border-inline-start: 4px solid gb.$gray-800; - margin-bottom: gb.$grid-unit-20; + border-inline-start: 4px solid colors.$gray-800; + margin-bottom: variables.$grid-unit-20; padding: 0 24px; } diff --git a/projects/plugins/jetpack/extensions/blocks/blogroll/common.scss b/projects/plugins/jetpack/extensions/blocks/blogroll/common.scss index 51ebe8c814ab..a089fccc46e7 100644 --- a/projects/plugins/jetpack/extensions/blocks/blogroll/common.scss +++ b/projects/plugins/jetpack/extensions/blocks/blogroll/common.scss @@ -1,10 +1,10 @@ -@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb; +@use "@wordpress/base-styles/breakpoints"; $jetpack-blogroll-item-container: bitem; @mixin break-bloroll-container-mobile() { - @container #{ ($jetpack-blogroll-item-container)} (min-width: #{ (gb.$break-mobile) }) { + @container #{ ($jetpack-blogroll-item-container)} (min-width: #{ (breakpoints.$break-mobile) }) { @content; } } diff --git a/projects/plugins/jetpack/extensions/blocks/business-hours/editor.scss b/projects/plugins/jetpack/extensions/blocks/business-hours/editor.scss index 656451abc107..4fbf46ef471c 100644 --- a/projects/plugins/jetpack/extensions/blocks/business-hours/editor.scss +++ b/projects/plugins/jetpack/extensions/blocks/business-hours/editor.scss @@ -1,4 +1,5 @@ -@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb; +@use "@wordpress/base-styles/breakpoints"; +@use "@wordpress/base-styles/variables"; .wp-block-jetpack-business-hours { overflow: hidden; @@ -30,7 +31,7 @@ // The Site Editor iframe doesn't include common styles, // from which the font size of the labels are inherited. // https://github.com/WordPress/gutenberg/blob/3da717b8d0ac7d7821fc6d0475695ccf3ae2829f/packages/base-styles/_variables.scss#L16 - font-size: gb.$default-font-size; + font-size: variables.$default-font-size; } .components-base-control__field { @@ -133,14 +134,14 @@ */ @mixin editor-area-is-small { - @media ( max-width: gb.$break-xlarge ) { + @media ( max-width: breakpoints.$break-xlarge ) { .is-sidebar-opened { @content; } } - @media ( max-width: gb.$break-small ) { + @media ( max-width: breakpoints.$break-small ) { @content; } diff --git a/projects/plugins/jetpack/extensions/blocks/donations/common.scss b/projects/plugins/jetpack/extensions/blocks/donations/common.scss index 09d31cfeee3e..e89b0c02bb5e 100644 --- a/projects/plugins/jetpack/extensions/blocks/donations/common.scss +++ b/projects/plugins/jetpack/extensions/blocks/donations/common.scss @@ -3,19 +3,20 @@ // by inheriting from the surrounding context. Per-state colors (active tab, // selected amount) are rendered via a per-instance scoped