Use for=ID on radio/checkbox label.

This is required for some screen reader like Jaws
This commit is contained in:
Tobias Nyholm 2017-10-05 21:36:40 -04:00
parent 253cde2062
commit 53d7857092
No known key found for this signature in database
GPG Key ID: DF3619E75A9B08F9
1 changed files with 4 additions and 0 deletions

View File

@ -148,10 +148,14 @@
{% endblock %}
{% block checkbox_label -%}
{%- set label_attr = label_attr|merge({'for': id}) -%}
{{- block('checkbox_radio_label') -}}
{%- endblock checkbox_label %}
{% block radio_label -%}
{%- set label_attr = label_attr|merge({'for': id}) -%}
{{- block('checkbox_radio_label') -}}
{%- endblock radio_label %}