From 4b3acfd8766b45ad4af804103bd6b010454a3b10 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Fri, 13 Aug 2021 12:20:35 +0200 Subject: [PATCH] a11y: add custom rendering for radio inputs (#54642) --- gadjo/templates/gadjo/radio-widget.html | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 gadjo/templates/gadjo/radio-widget.html diff --git a/gadjo/templates/gadjo/radio-widget.html b/gadjo/templates/gadjo/radio-widget.html new file mode 100644 index 0000000..10585e7 --- /dev/null +++ b/gadjo/templates/gadjo/radio-widget.html @@ -0,0 +1,9 @@ +{% extends "gadjo/widget.html" %} + +{% block widget-attrs %}role="radiogroup"{% endblock %} + +{% block widget-control %} +{% for option in field %} +{{ option }} +{% endfor %} +{% endblock %}