Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
query-pagination-next and previous: Changing the markup on the first …
…and last pages of a pagination (#36681) * add an empty wrapper when at first/last page * keep label on placeholder, add extra class * Query pagination previous link: Avoids printing the link if there are no pages to paginate * Query pagination next: removing custom 'last-page' class. We can target the same element and know when we are navigating the last page with a selector like this: "span.wp-block-query-pagination-next" * php code style format * removing repeated line of code * php code style * Query pagination previous and next: non clickeable elements are hidden When we render non clickeable elements <span> instead of <a> for the next and previous elements we make them not visible and hidden from screen readers * php lint * Adding a class to the wrapper layout element rendered by Gutenberg Adding a class describing the justify value of the layout element to be able to target the different justifications with CSS selectors. * Query pagination: hiding non visible elements when the justification is right or left In this way we will avoid unwanted spaces when the justification is right or left. * avoid printing class if is a value is missing * Fixing elements rendered on a few edge cases * removing not needed CSS * fixing css selectors * removing debugging line Co-authored-by: Maggie <maggie.cabrera@automattic.com>
- Loading branch information
1 parent
e96d47b
commit 18214af
Showing
4 changed files
with
104 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters