Files
notifications-admin/app/templates/components/task-list.html
Tom Byers ee9f348ce4 Update all links to use GOVUK Frontend style
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.
2020-02-25 10:47:24 +00:00

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 %}