Skip to content

Conditional radios have aria-controls even without conditional content #94

Description

@tim-s-ccs

The file for the conditional question has templates/gds/layout/conditional_question.html has the following block of code that always runs even when the radio has no conditional content:

{% block additional_input_attributes %}
  aria-controls="conditional_{{ field.html_name }}_{{ position }}"
{% endblock %}

This could be updated to make it conditional like the block below:

{% block additional_input_attributes %}
  {% if conditional_content %}
    aria-controls="conditional_{{ field.html_name }}_{{ position }}"
  {% endif %}
{% endblock %}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions