Skip to content

Commit 0820168

Browse files
Pagination tweak (#460)
We can use the nhsIcon now
1 parent 75b9b41 commit 0820168

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

app/components/pagination/_pagination.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217

218218
.nhsuk-pagination--numbered .nhsuk-icon {
219219
margin-top: 0;
220-
margin-bottom: -12px;
220+
margin-bottom: -10px;
221221
fill: nhsuk-colour("blue");
222222
}
223223

app/components/pagination/template.njk

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% from "../../../node_modules/nhsuk-frontend/dist/nhsuk/macros/attributes.njk" import nhsukAttributes %}
2+
{% from "../../../node_modules/nhsuk-frontend/dist/nhsuk/macros/icon.njk" import nhsukIcon %}
23

34
{# There are 2 variants of this component, one for content pages which
45
has only previous and next links including the titles of those pages,
@@ -10,16 +11,12 @@ presence of items (pages). #}
1011

1112
{# Arrow pointing left - used by both variants #}
1213
{%- macro _arrowPrevious() -%}
13-
<svg class="nhsuk-icon nhsuk-icon__arrow-left" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" width="34" height="34">
14-
<path d="M4.1 12.3l2.7 3c.2.2.5.2.7 0 .1-.1.1-.2.1-.3v-2h11c.6 0 1-.4 1-1s-.4-1-1-1h-11V9c0-.2-.1-.4-.3-.5h-.2c-.1 0-.3.1-.4.2l-2.7 3c0 .2 0 .4.1.6z"></path>
15-
</svg>
14+
{{ nhsukIcon("arrow-left") }}
1615
{%- endmacro -%}
1716

1817
{# Arrow pointing right - used by both variants #}
1918
{%- macro _arrowNext() -%}
20-
<svg class="nhsuk-icon nhsuk-icon__arrow-right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" width="34" height="34">
21-
<path d="M19.6 11.66l-2.73-3A.51.51 0 0 0 16 9v2H5a1 1 0 0 0 0 2h11v2a.5.5 0 0 0 .32.46.39.39 0 0 0 .18 0 .52.52 0 0 0 .37-.16l2.73-3a.5.5 0 0 0 0-.64z"></path>
22-
</svg>
19+
{{ nhsukIcon("arrow-right") }}
2320
{%- endmacro -%}
2421

2522
{# Numbered page - included as a link within a list item. #}

0 commit comments

Comments
 (0)