mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-11 05:43:44 -05:00
Includes: - turning off :visited styles to match existing design - swapping heading classes used to make links bold for the GOVUK Frontend bold override class - adding visually hidden text to some links to make them work when isolated from their context We may need to revisit whether some links, such as those for documentation and features, may benefit from having some indication that their target has been visited.
17 lines
599 B
HTML
17 lines
599 B
HTML
{% macro task_list_item(completed, label, link) %}
|
|
<li class="task-list-item">
|
|
<span aria-describedby="{{ label|id_safe }}"><a class="govuk-link govuk-link--no-visited-state" href="{{ link }}">{{ label }}</a></span>
|
|
{% if completed %}
|
|
<strong class="task-list-indicator-completed" id="{{ label|id_safe }}">Completed</strong>
|
|
{% else %}
|
|
<strong class="task-list-indicator-not-completed" id="{{ label|id_safe }}">Not completed</strong>
|
|
{% endif %}
|
|
</li>
|
|
{% endmacro %}
|
|
|
|
{% macro task_list_wrapper() %}
|
|
<ul class="task-list">
|
|
{{ caller() }}
|
|
</ul>
|
|
{% endmacro %}
|