Skip to content
This repository was archived by the owner on Dec 10, 2019. It is now read-only.

Commit 5feafd7

Browse files
author
Jesse Boyd
committed
Fixing ellipsis issue on pagination. Added <span> element to pager template with 'disabled' class. Added 'hover' to disabled style to prevent unnecessary colour changes.
1 parent ce56548 commit 5feafd7

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

css/govcms-ui.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sass/uikit-bootstrap/_elements.scss

+5
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,11 @@ a {
440440
background-color: #fff;
441441
border-color: $grey-border;
442442
color: $grey;
443+
&:hover {
444+
background-color: #fff;
445+
border-color: $grey-border;
446+
color: $grey;
447+
}
443448
}
444449
}
445450
}

templates/layout/pager.html.twig

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
{% endif %}
5555
{# Add an ellipsis if there are further previous pages. #}
5656
{% if ellipses.previous %}
57-
<li class="pager__item pager__item--ellipsis" role="presentation">&hellip;</li>
57+
<li class="pager__item pager__item--ellipsis disabled" role="presentation"><span>&hellip;</span></li>
5858
{% endif %}
5959
{# Now generate the actual pager piece. #}
6060
{% for key, item in items.pages %}
@@ -74,7 +74,7 @@
7474
{% endfor %}
7575
{# Add an ellipsis if there are further next pages. #}
7676
{% if ellipses.next %}
77-
<li class="pager__item pager__item--ellipsis" role="presentation">&hellip;</li>
77+
<li class="pager__item pager__item--ellipsis disabled" role="presentation"><span>&hellip;</span></li>
7878
{% endif %}
7979
{# Print next item if we are not on the last page. #}
8080
{% if items.next %}

0 commit comments

Comments
 (0)