diff --git a/packages/edit-site/src/components/sidebar/style.scss b/packages/edit-site/src/components/sidebar/style.scss index a1f15f8c8229e3..f05555561817c3 100644 --- a/packages/edit-site/src/components/sidebar/style.scss +++ b/packages/edit-site/src/components/sidebar/style.scss @@ -1,6 +1,12 @@ .edit-site-sidebar__content { flex-grow: 1; overflow-y: auto; + // Prevents horizontal overflow while animating screen transitions + overflow-x: hidden; + // Mark this section of the DOM as isolated, providing performance benefits + // by limiting calculations of layout, style and paint to a DOM subtree rather + // than the entire page. + contain: content; } @keyframes slide-from-right {