Query Pagination: add an empty wrapper when at first/last page #35430
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixes #34997
To keep the alignments consistent between pages and between the editor and the frontend, I've added an empty wrapper (right now it's a simple span to test the fix, I can add the rest of the wrapper attributes and/or change it to an anchor depending on discussion).
How has this been tested?
I've used the following markup on emptytheme, tested with
inherit
set to true and false:Adapt your site or your query block so the pagination shows up and navigate to the first and last pages of the loop. The numbers should stay in the center.
Screenshots
Editor:
First page:
Last page:
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist:
*.native.js
files for terms that need renaming or removal).