Skip to content

Commit

Permalink
- add css so that content after <a> links don't print
Browse files Browse the repository at this point in the history
- wrap pagination with `govuk-!-display-none-print` class
  • Loading branch information
MazOneTwoOne committed Oct 31, 2024
1 parent ee84977 commit 2e538db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions fala/assets-src/sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ $laa-dev-colour: govuk-colour("pink");
}
}

@media print {
a[href]:after {
content: none !important;
}
}

.fala-tickbox-columns_new .govuk-checkboxes__item {
// Ensure items do not break across columns
break-inside: avoid;
Expand Down
4 changes: 3 additions & 1 deletion fala/templates/adviser/results.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ <h3 class="govuk-heading-s govuk-!-margin-top-4 govuk-!-margin-bottom-2">{{ _('C
</li>
{% endfor %}
</ul>
{{ govukPagination(pagination) }}
<nav class="govuk-!-display-none-print">
{{ govukPagination(pagination) }}
</nav>
{% endif %}
</div>
{% endblock %}

0 comments on commit 2e538db

Please sign in to comment.