From 3aeda3a2e599e8063fb2cef5ce59afa53ac86949 Mon Sep 17 00:00:00 2001 From: Douglas Date: Fri, 18 Sep 2026 17:35:34 -0300 Subject: [PATCH 1/2] Admin page layout: clip Boot's stage so it can't add a second scrollbar The layout scrolls the page's middle, and `#wpbody-content` used to clip anything outside it. wp-build puts Boot's stage inside that boundary with `overflow-y: auto`, so absolutely positioned content anchored above the middle overflows the stage instead of being clipped. On the Search dashboard, two screen-reader elements in the record meter did that and gave the Overview tab a second scrollbar. The wp-build mixin now clips the stage, restoring the old boundary. No other wp-build dashboard overflows its stage today, so none of them changes. Search's route never imported its `route.scss`, which is the file that includes the wp-build mixin: wp-build only bundles styles the entry imports. It imported the legacy entry's base-mixin stylesheet instead, so the stage now imports `route.scss`, a superset of it. Co-Authored-By: Claude Opus 5 (1M context) --- projects/js-packages/base-styles/admin-page-layout.scss | 8 ++++++++ projects/packages/search/routes/dashboard/stage.tsx | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/projects/js-packages/base-styles/admin-page-layout.scss b/projects/js-packages/base-styles/admin-page-layout.scss index 8d769ac55f1c..a95a66439f1b 100644 --- a/projects/js-packages/base-styles/admin-page-layout.scss +++ b/projects/js-packages/base-styles/admin-page-layout.scss @@ -374,6 +374,14 @@ $jp-breakpoint-mobile: 782px; @include jetpack-admin-page-layout; + // Boot's stage scrolls, but this layout scrolls the page's middle. Clip + // the stage like `#wpbody-content`, or absolute content anchored above the + // middle adds a second scrollbar. `clip`, not `hidden`: a `hidden` stage + // still scrolls to focused content. + #wpbody-content :is(.boot-layout__stage, [class*="__stage"]):has(.jp-admin-page) { + overflow: clip; + } + // admin-ui's `` renders semantic `