a11y: Comments Pagination Nav Wrapper#70730
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
t-hamano
left a comment
There was a problem hiding this comment.
LGTM! Thanks for the quick fix.
P.S. I recommend that you don't omit the Testing Instructions section. Without this section, reviewers may not know what to test and how to test it.
|
Thanks @t-hamano, I've just added the Testing Instructions and will keep that in mind for next time. |
* fix: use <nav> with aria-label for Comments Pagination block for accessibility Fixes WordPress#70729 * fix: update aria-label for Comments Pagination block to improve accessibility Co-authored-by: Adi-ty <[email protected]> Co-authored-by: t-hamano <[email protected]>
What?
Closes #70729
This PR updates the Comments Pagination block to use a
<nav>element witharia-label="Comments pagination"as its wrapper, instead of a<div>Why?
the_comments_pagination()function and the Query Pagination block.How?
get_block_wrapper_attributes()to add the aria-label and class attributes.Testing Instructions
<nav>element witharia-label="Comments pagination".