Skip to content

Commit

Permalink
NavigatorProvider: Exclude size value from contain CSS rule (#57498)
Browse files Browse the repository at this point in the history
* NavigatorProvider: Exclude size value from contain CSS rule

* Update changelog
  • Loading branch information
t-hamano authored Jan 3, 2024
1 parent 904325b commit 2114141
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- `RadioControl`: Fully encapsulate styles ([#57347](https://github.com/WordPress/gutenberg/pull/57347)).
- `Snackbar`: Fix icon positioning ([#57377](https://github.com/WordPress/gutenberg/pull/57377)).
- `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

Expand Down
6 changes: 3 additions & 3 deletions packages/components/src/navigator/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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( {
Expand Down

0 comments on commit 2114141

Please sign in to comment.