Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -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.


Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb;
@use "@wordpress/base-styles/mixins";
@use "@automattic/jetpack-base-styles/root-variables";

.dot-pager {
Expand All @@ -13,7 +13,7 @@
opacity: 1;
visibility: visible;

@include gb.reduce-motion( "transition" );
@include mixins.reduce-motion( "transition" );
}

.dot-pager__controls {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb;
@use "@wordpress/base-styles/mixins";

.global-notices {

Expand All @@ -10,14 +10,14 @@
// Modals have 100000, so this needs to be above them
z-index: 100001;

@include gb.break-small {
@include mixins.break-small {
width: auto;
inset-inline: unset; // left and right
inset-block-start: 4rem;
inset-inline-end: 1rem;
}

@include gb.break-medium {
@include mixins.break-medium {
inset-block-start: 3rem;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb;
@use "@wordpress/base-styles/colors";

.star-icon {
fill: #000;
Expand All @@ -10,7 +10,7 @@
}

.socialIcon {
fill: gb.$gray-700;
fill: colors.$gray-700;

&.bluesky {
fill: var(--jetpack-social-logo-color-bluesky);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb;
@use "@wordpress/base-styles/breakpoints";
@use "@wordpress/base-styles/colors";
@use "@wordpress/base-styles/mixins";

.components-modal__screen-overlay:has(.jp-navigator-modal) {
z-index: 99999; // Slightly lower than snackbar z-index (100001) so snackbars remain visible above the modal
Expand All @@ -9,7 +11,7 @@
container-name: navigator-modal;
width: 100%;

@include gb.break-medium() {
@include mixins.break-medium() {
max-height: 90%;
}

Expand Down Expand Up @@ -37,15 +39,15 @@
justify-content: space-between;
padding: 1.5rem;
height: 4.5rem;
border-bottom: 1px solid gb.$gray-200;
border-bottom: 1px solid colors.$gray-200;
flex-shrink: 0;

h1 {
margin: 0;
font-size: 15px;
font-weight: 500;
line-height: 24px;
color: gb.$gray-900;
color: colors.$gray-900;
}
}

Expand All @@ -60,7 +62,7 @@
overflow: auto;
flex-direction: column;

@container navigator-modal (width >= #{gb.$break-small}) {
@container navigator-modal (width >= #{breakpoints.$break-small}) {
flex-direction: row;
}
}
Expand All @@ -71,11 +73,11 @@
flex-direction: column;
gap: 1.5rem;

@container navigator-modal (width >= #{gb.$break-small}) {
@container navigator-modal (width >= #{breakpoints.$break-small}) {
flex-basis: 30%;
height: 100%;
flex-shrink: 0;
border-inline-end: 1px solid gb.$gray-300;
border-inline-end: 1px solid colors.$gray-300;
overflow: auto;
}
}
Expand All @@ -85,14 +87,14 @@
height: 100%;
flex: 1;

@container navigator-modal (width >= #{gb.$break-small}) {
@container navigator-modal (width >= #{breakpoints.$break-small}) {
overflow: auto;
}
}

&__footer {
padding: 1rem 1.5rem;
border-top: 1px solid gb.$gray-300;
border-top: 1px solid colors.$gray-300;
height: 4.5rem;
flex-shrink: 0;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb;
@use "@wordpress/base-styles/mixins";

// Shared by CheckboxCard and RadioCard, which differ only in their control.

Expand Down Expand Up @@ -26,7 +26,7 @@

&:has(:focus-visible) {

@include gb.outset-ring__focus();
@include mixins.outset-ring__focus();
}

@media (prefers-reduced-motion: no-preference) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb;
@use "@wordpress/base-styles/mixins";

.swipeable__container {
width: 100%;
Expand All @@ -19,7 +19,7 @@
transition: all 0.5s ease-in-out;
transition-property: transform, height;

@include gb.reduce-motion( "transition" );
@include mixins.reduce-motion( "transition" );
}

.swipeable__page {
Expand Down
1 change: 1 addition & 0 deletions projects/js-packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
"@types/react": "19.3.0",
"@types/react-dom": "19.3.0",
"@typescript/native-preview": "7.0.0-dev.20260707.2",
"@wordpress/base-styles": "14.0.0",
"jest": "30.5.2",
"react": "19.3.0",
"react-dom": "19.3.0",
Expand Down
Loading