Skip to content

Commit 4400de6

Browse files
Add aria-label to page jump
1 parent f25fc03 commit 4400de6

File tree

1 file changed

+5
-1
lines changed
  • app/code/Magento/Theme/view/frontend/templates/html

1 file changed

+5
-1
lines changed

app/code/Magento/Theme/view/frontend/templates/html/pager.phtml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
<li class="item">
6262
<a class="page previous jump"
6363
title=""
64+
aria-label="Skip to page <?= $block->escapeHtml($block->getPreviousJumpPage()) ?>"
6465
href="<?= $block->escapeUrl($block->getPreviousJumpUrl()) ?>">
6566
<span>...</span>
6667
</a>
@@ -87,7 +88,10 @@
8788

8889
<?php if ($block->canShowNextJump()): ?>
8990
<li class="item">
90-
<a class="page next jump" title="" href="<?= $block->escapeUrl($block->getNextJumpUrl()) ?>">
91+
<a class="page next jump"
92+
title=""
93+
aria-label="Skip to page <?= $block->escapeHtml($block->getNextJumpPage()) ?>"
94+
href="<?= $block->escapeUrl($block->getNextJumpUrl()) ?>">
9195
<span>...</span>
9296
</a>
9397
</li>

0 commit comments

Comments
 (0)