Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
96e0df5
Global Styles: Switch the revisions screen to the DataViews pickerAct…
jorgefilipecosta Jul 29, 2026
5cd5198
Global Styles: Render Apply / Reset as a revisions picker footer action
jorgefilipecosta Aug 4, 2026
5713b61
Global Styles: Fit the revisions footer to the sidebar width
jorgefilipecosta Aug 4, 2026
ea2eb7c
Global Styles: Shorten the reset action label to Reset
jorgefilipecosta Aug 4, 2026
087fde6
Remove import dependency group comments
jorgefilipecosta Aug 10, 2026
39dd0ca
Move the changelog entries back to the Unreleased section
jorgefilipecosta Aug 19, 2026
867d96a
Post-rebase fix: Use the @wordpress/ui Badge for the active revision,…
jorgefilipecosta Sep 10, 2026
2350113
Post-rebase fix: Route the screen revisions test through Vitest's jsd…
jorgefilipecosta Sep 10, 2026
e26ae0e
Post-rebase fix: Move the changelog entries back to the Unreleased se…
jorgefilipecosta Sep 10, 2026
a1a77db
Post-rebase fix: Point the newer close-after-apply e2e test at the pi…
jorgefilipecosta Sep 10, 2026
177e13c
Post-rebase fix: Drop the duplicated 1.21.0 changelog entries from th…
jorgefilipecosta Sep 15, 2026
2f3c7e6
Post-rebase fix: Reformat the revisions list for wp-prettier 3.9.6
jorgefilipecosta Sep 17, 2026
b81dc52
Global Styles: Drop the revisions footer style overrides
jorgefilipecosta Sep 17, 2026
398266b
Global Styles: Keep the revisions selection on the page that holds it
jorgefilipecosta Sep 17, 2026
dc86f80
Global Styles: Anchor each revisions :has() rule on the element it st…
jorgefilipecosta Sep 17, 2026
d8f8312
Global Styles: Scope the paginate e2e selection check to the revision…
jorgefilipecosta Sep 17, 2026
dc6b52d
Global Styles: Close the apply confirmation when its revision is gone
jorgefilipecosta Sep 17, 2026
292ad10
Global Styles: Drop the unused class name from the active revision badge
jorgefilipecosta Sep 17, 2026
01f935c
Global Styles: Recognise the active revision by id as well as by payload
jorgefilipecosta Sep 17, 2026
c8d3a64
Global Styles: Compose the revisions footer from the pagination and t…
jorgefilipecosta Sep 17, 2026
bcd722d
Global Styles: Put the page select and the action on one footer row
jorgefilipecosta Sep 17, 2026
01d823a
Global Styles: Compose the revisions footer with the page select
jorgefilipecosta Sep 17, 2026
2ddbfe6
Global Styles: Space the revisions footer row and let the select shrink
jorgefilipecosta Sep 17, 2026
df64571
Tests: Cover the picker footer's isEligible and the cloned items
jorgefilipecosta Sep 17, 2026
dd4c13b
Global Styles: Rename the page select locator in the paginate e2e test
jorgefilipecosta Sep 17, 2026
35ad852
Global Styles: Rename the page select locator once more
jorgefilipecosta Sep 17, 2026
90c3bec
DataViewsPicker: Keep footer actions enabled for a selection on other…
jorgefilipecosta Sep 18, 2026
ef1949b
Global Styles: Drop the unused value getter of the details field
jorgefilipecosta Sep 18, 2026
d0f4a5b
Global Styles: Say each revisions screen rationale once
jorgefilipecosta Sep 18, 2026
52bb367
Global Styles: Trim the revisions view setup
jorgefilipecosta Sep 18, 2026
f7a871b
Tests: Check the revisions query inside the pagination test
jorgefilipecosta Sep 18, 2026
d8f477a
Global Styles: Compose the revisions footer inside the picker footer
jorgefilipecosta Sep 21, 2026
5ad1588
Global Styles: Keep the revisions action at the end of its footer row
jorgefilipecosta Sep 22, 2026
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
2 changes: 2 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/editor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- `CollaboratorsPresence`: Show focus ring for avatar stack in header with button's outline instead of previous box-shadow override ([#82941](https://github.com/WordPress/gutenberg/pull/82941)).
- Add category filtering and search to the "Choose a pattern" modal shown when creating a new page or post. Only the categories containing start patterns for the current post type are listed, with labels pulled from the registered pattern categories ([#81396](https://github.com/WordPress/gutenberg/pull/81396)).
- `PostLastRevisionPanel`: Show the revisions button's focus ring with the design system's outline instead of a legacy box-shadow that doubled up with `Button`'s own ring ([#82955](https://github.com/WordPress/gutenberg/pull/82955)).
- Global Styles sidebar: Give the revisions screen a bounded height so its DataViews timeline scrolls internally and the pagination footer stays pinned to the bottom ([#80856](https://github.com/WordPress/gutenberg/pull/80856)).

### Bug Fixes

Expand Down
26 changes: 26 additions & 0 deletions packages/editor/src/components/global-styles-sidebar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,32 @@
flex-grow: 1;
}

// Give the revisions screen a bounded height so the DataViews picker timeline
// scrolls internally and its pagination footer stays pinned to the bottom.
//
// The screen only renders in the Global Styles sidebar, so its ancestors are
// scoped with `:has()` — keeping the other Global Styles screens on the
// default outer-scrolling layout (same approach as the post revisions
// timeline in the document sidebar).
//
// Keep each `:has()` the subject of its rule: a subject below it recalculates
// the anchor's whole subtree on every DOM change in the editor.
.editor-global-styles-sidebar:has(.global-styles-ui-screen-revisions) {
overflow: hidden;
}

.editor-global-styles-sidebar__panel:has(.global-styles-ui-screen-revisions) {
display: flex;
flex-direction: column;
min-height: 0;
}

// The navigator also renders on the Styles page, so keep this to the sidebar.
.editor-global-styles-sidebar .global-styles-ui-sidebar__navigator-provider:has(.global-styles-ui-screen-revisions) {
flex: 1;
min-height: 0;
}

.editor-global-styles-sidebar .editor-global-styles-sidebar__header-title {
margin: 0;
}
Expand Down
1 change: 1 addition & 0 deletions packages/global-styles-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Enhancements

- Add a text shadow presets screen under Typography ([#79584](https://github.com/WordPress/gutenberg/pull/79584)).
- Screen Revisions: Use the DataViews `pickerActivity` layout to render the revisions timeline, with Apply / Reset rendered as a picker footer action so the timeline options hold no interactive content ([#80856](https://github.com/WordPress/gutenberg/pull/80856)).

### Bug Fixes

Expand Down
2 changes: 2 additions & 0 deletions packages/global-styles-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"@wordpress/compose": "file:../compose",
"@wordpress/core-data": "file:../core-data",
"@wordpress/data": "file:../data",
"@wordpress/dataviews": "file:../dataviews",
"@wordpress/date": "file:../date",
"@wordpress/element": "file:../element",
"@wordpress/global-styles-engine": "file:../global-styles-engine",
Expand All @@ -65,6 +66,7 @@
"devDependencies": {
"@testing-library/dom": "^10.4.1",
"@testing-library/react": "^16.3.3",
"@testing-library/user-event": "^14.6.1",
"vitest": "^5.0.0",
"vitest-browser-react": "^2.3.0"
},
Expand Down
100 changes: 0 additions & 100 deletions packages/global-styles-ui/src/pagination/index.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions packages/global-styles-ui/src/pagination/style.scss

This file was deleted.

Loading
Loading