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
8 changes: 8 additions & 0 deletions projects/js-packages/base-styles/admin-page-layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<Breadcrumbs>` renders semantic `<ul>/<li>/<a>` so it
// inherits two wp-admin globals that misbehave inside the header:
// `ul li { margin-bottom: 6px }` inflates the breadcrumb `<ul>`'s
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Admin page layout: Clip the wp-build stage so content outside the scrolling area cannot add a second scrollbar.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fixed
Comment: Fix a second scrollbar on the flag-gated wp-build dashboard.


2 changes: 1 addition & 1 deletion projects/packages/search/routes/dashboard/stage.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createReduxStore, register } from '@wordpress/data';
import SearchDashboard from '../../src/dashboard/components/dashboard/wrapped-dashboard';
import { STORE_ID, storeConfig } from '../../src/dashboard/store';
import '../../src/dashboard/scss/admin-layout.scss';
import './route.scss';

// Mirrors the module-scope registration in `src/dashboard/index.jsx`: `<SearchDashboard>`
// reads this store via `useSelect()`, so it must exist before boot mounts `stage`.
Expand Down
Loading