From 8a8114da38a882d22e460e5b5e38258f16bedf57 Mon Sep 17 00:00:00 2001 From: Tetsuaki Hamano Date: Wed, 3 Jan 2024 16:25:19 +0900 Subject: [PATCH 1/2] NavigatorProvider: Exclude size value from contain CSS rule --- packages/components/src/navigator/styles.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/components/src/navigator/styles.ts b/packages/components/src/navigator/styles.ts index 8ec5f11da16d3a..0203edbdf1816a 100644 --- a/packages/components/src/navigator/styles.ts +++ b/packages/components/src/navigator/styles.ts @@ -7,10 +7,10 @@ export const navigatorProviderWrapper = css` /* Prevents horizontal overflow while animating screen transitions */ overflow-x: hidden; /* Mark this subsection of the DOM as isolated, providing performance benefits - * by limiting calculations of layout, style, paint, size, or any combination - * to a DOM subtree rather than the entire page. + * by limiting calculations of layout, style and paint to a DOM subtree rather + * than the entire page. */ - contain: strict; + contain: content; `; const fadeInFromRight = keyframes( { From 454f0f3080bc890dd6b3e19b1eaadba698aa7d5b Mon Sep 17 00:00:00 2001 From: Tetsuaki Hamano Date: Wed, 3 Jan 2024 16:40:10 +0900 Subject: [PATCH 2/2] Update changelog --- packages/components/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 2f2f1ded2782da..943b831f0e38b2 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -17,6 +17,7 @@ - `PaletteEdit`: Don't discard colors with default name and slug ([#54332](https://github.com/WordPress/gutenberg/pull/54332)). - `RadioControl`: Fully encapsulate styles ([#57347](https://github.com/WordPress/gutenberg/pull/57347)). - `GradientPicker`: Use slug while iterating over gradient entries to avoid React "duplicated key" warning ([#57361](https://github.com/WordPress/gutenberg/pull/57361)). +- `NavigatorProvider`: Exclude `size` value from `contain` CSS rule ([#57498](https://github.com/WordPress/gutenberg/pull/57498)). ### Enhancements