Skip to content

Commit 505b2ff

Browse files
committed
fix: name the listing pagination landmark with a noun
1 parent 7ce3c69 commit 505b2ff

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎src/resources/language/_language.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,9 @@ listing-page-minutes-compact: "{0} min"
178178
listing-page-category-all: "All"
179179
listing-page-no-matches: "No matching items"
180180
# Accessible name for the pagination landmark of a listing (never shown as visible text).
181-
# "Page navigation" = moving between pages of results, not a web page; "navigation" is the landmark, not a menu.
182-
listing-page-navigation: "Page navigation"
181+
# It names the group of page links that moves between pages of listing results, not a web page.
182+
# Follow the landmark label rules above: do not include the word "navigation", and use a noun.
183+
listing-page-pagination: "Pagination"
183184
# Accessible name for each numbered page link of a paginated listing (never shown as visible text); the link itself shows only the number.
184185
# "Page" means a page of listing results, not a web page. {0} is the page number and must be kept.
185186
listing-page-number: "Page {0}"

‎src/resources/projects/website/listing/_pagination.ejs.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
```{=html}
22
<div class="listing-no-matching d-none"><%- listing.utilities.localizedString("listing-page-no-matches") %></div>
33
<% if (listing["page-size"] < items.length) { %>
4-
<nav id="<%- listing.id %>-pagination" class="listing-pagination" aria-label="<%- listing.utilities.localizedString("listing-page-navigation") %>" data-page-label="<%- listing.utilities.localizedString("listing-page-number") %>">
4+
<nav id="<%- listing.id %>-pagination" class="listing-pagination" aria-label="<%- listing.utilities.localizedString("listing-page-pagination") %>" data-page-label="<%- listing.utilities.localizedString("listing-page-number") %>">
55
<ul class="pagination"></ul>
66
</nav>
77
<% } %>

‎tests/unit/language-known-gaps.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ launch-binder-title: [sr-Latn]
55
launch-dev-container-title: [sr-Latn]
66
link-external-newwindow-label: [az, bg, ca, cs, da, de, es, eu, fi, fr, he, id, is, it, ja, ko, lt, nb, nl, nn, pl, pt, ru, sk, sl, sr-Latn, sv, tr, ua, zh]
77
listing-page-field-wordcount: [sr-Latn]
8-
listing-page-navigation: [az, bg, ca, cs, da, de, el, es, eu, fi, fr, he, id, is, it, ja, ko, lt, nb, nl, nn, pl, pt, ru, sk, sl, sr-Latn, sv, tr, ua, zh]
98
listing-page-number: [az, bg, ca, cs, da, de, el, es, eu, fi, fr, he, id, is, it, ja, ko, lt, nb, nl, nn, pl, pt, ru, sk, sl, sr-Latn, sv, tr, ua, zh]
9+
listing-page-pagination: [az, bg, ca, cs, da, de, el, es, eu, fi, fr, he, id, is, it, ja, ko, lt, nb, nl, nn, pl, pt, ru, sk, sl, sr-Latn, sv, tr, ua, zh]
1010
listing-page-words: [sr-Latn]
1111
revealjs-menu-button-label: [az, bg, ca, cs, da, de, es, eu, fi, he, id, is, it, ja, ko, lt, nb, nl, nn, pl, pt, ru, sk, sl, sr-Latn, sv, tr, ua, zh]
1212
skip-to-content: [bg, ca, cs, da, eu, fi, he, id, is, ko, lt, nb, nn, pl, ru, sk, sl, sr-Latn, sv, tr, ua]

0 commit comments

Comments
 (0)