File tree Expand file tree Collapse file tree 1 file changed +20
-6
lines changed Expand file tree Collapse file tree 1 file changed +20
-6
lines changed Original file line number Diff line number Diff line change 20
20
{% if current %} current =" {{ current }}" {% endif %}
21
21
{{ attributes }}
22
22
>
23
- <nav class =" {{ baseClass }}" >
23
+ <nav class =" {{ baseClass }}" role = " navigation " aria-label = " Pagination Navigation " >
24
24
{% if previous %}
25
25
<a class =" {{ " #{baseClass}__item" }} {{ " #{baseClass}__item--prev" }}" href =" {{ previous .href }}" >
26
26
<span class =" {{ " #{baseClass}__icon" }}" >
34
34
35
35
{% if pages %}
36
36
{% for key , link in pages %}
37
- <a class =" {{ " #{baseClass}__item" }} {{ key == current ? ' is-current' : ' ' }}" href =" {{ link .href }}" >
38
- <span class =" {{ " #{baseClass}__text" }}" >
39
- {{- key -}}
40
- </span >
41
- </a >
37
+ {% if key == current %}
38
+ <a class =" {{ " #{baseClass}__item" }} is-current" href =" {{ link .href }}" aria-current =" true" >
39
+ <span class =" {{ " #{baseClass}__text" }}" >
40
+ <span class =" u-bolt-visuallyhidden" >
41
+ You are currently on page
42
+ </span >
43
+ {{- key -}}
44
+ </span >
45
+ </a >
46
+ {% else %}
47
+ <a class =" {{ " #{baseClass}__item" }}" href =" {{ link .href }}" >
48
+ <span class =" {{ " #{baseClass}__text" }}" >
49
+ <span class =" u-bolt-visuallyhidden" >
50
+ Navigate to page
51
+ </span >
52
+ {{- key -}}
53
+ </span >
54
+ </a >
55
+ {% endif %}
42
56
{% endfor %}
43
57
{% endif %}
44
58
You can’t perform that action at this time.
0 commit comments