Skip to content

Commit

Permalink
Merge pull request #3899 from alphagov/update-pagination-label
Browse files Browse the repository at this point in the history
Update default `aria-label` in Pagination component
  • Loading branch information
querkmachine committed Jul 11, 2023
2 parents 98dcb38 + 78ee88c commit f0a6196
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/govuk/components/pagination/pagination.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ params:
- name: landmarkLabel
type: string
required: false
description: The label for the navigation landmark that wraps the pagination. Defaults to 'results'.
description: The label for the navigation landmark that wraps the pagination. Defaults to 'Pagination'.
- name: classes
type: string
required: false
Expand Down
2 changes: 1 addition & 1 deletion src/govuk/components/pagination/template.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% set blockLevel = not params.items and (params.next or params.previous) %}

<nav class="govuk-pagination {{- ' ' + params.classes if params.classes }} {{- ' govuk-pagination--block' if blockLevel }}" role="navigation" aria-label="{{ params.landmarkLabel | default("results") }}" {%- for attribute, value in params.attributes %} {{ attribute }}="{{ value }}" {%- endfor -%}>
<nav class="govuk-pagination {{- ' ' + params.classes if params.classes }} {{- ' govuk-pagination--block' if blockLevel }}" role="navigation" aria-label="{{ params.landmarkLabel | default("Pagination") }}" {%- for attribute, value in params.attributes %} {{ attribute }}="{{ value }}" {%- endfor -%}>
{%- if params.previous and params.previous.href -%}
<div class="govuk-pagination__prev">
<a class="govuk-link govuk-pagination__link" href="{{ params.previous.href }}" rel="prev" {%- for attribute, value in params.previous.attributes %} {{ attribute }}="{{ value }}" {%- endfor -%}>
Expand Down

0 comments on commit f0a6196

Please sign in to comment.