Give selected pill item an id

This commit is contained in:
Tom Byers
2020-09-09 22:31:11 +01:00
parent 47218f9582
commit ddf54d5ce3

View File

@@ -11,7 +11,7 @@
{% for label, option, link, count in items %}
<li class="pill-item__container">
{% if current_value == option %}
<a class="pill-item pill-item--selected govuk-link govuk-link--no-visited-state{% if not show_count %} pill-item--centered{% endif %}" href="{{ link }}" aria-current="page">
<a id="pill-selected-item" class="pill-item pill-item--selected govuk-link govuk-link--no-visited-state{% if not show_count %} pill-item--centered{% endif %}" href="{{ link }}" aria-current="page">
{% else %}
<a class="pill-item govuk-link govuk-link--no-visited-state" href="{{ link }}">
{% endif %}