Projet

Général

Profil

0002-a11y-define-role-for-django-s-radio-buttons-54642.patch

Serghei Mihai, 12 août 2021 15:01

Télécharger (995 octets)

Voir les différences:

Subject: [PATCH 2/2] a11y: define role for django's radio buttons (#54642)

 gadjo/templates/django/forms/widgets/radio.html | 4 ++++
 1 file changed, 4 insertions(+)
 create mode 100644 gadjo/templates/django/forms/widgets/radio.html
gadjo/templates/django/forms/widgets/radio.html
1
{% with id=widget.attrs.id %}<ul{% if id %} id="{{ id }}"{% endif %}{% if widget.attrs.class %} class="{{ widget.attrs.class }}"{% endif %} role="radiogroup">{% for group, options, index in widget.optgroups %}
2
  {% for option in options %}<li>{% include option.template_name with widget=option %}</li>{% endfor %}
3
  {% endfor %}
4
</ul>{% endwith %}
0
-