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 %}
The file for the conditional question has
templates/gds/layout/conditional_question.htmlhas 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 %}