misc: add correct value to form element role attributes (#78151)
gitea/wcs/pipeline/head This commit looks good Details

This commit is contained in:
Frédéric Péters 2023-06-04 12:48:17 +02:00
parent 2c312e5e79
commit a85cdc600a
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
data-widget-name="{{ widget.name }}"
data-widget-name-for-id="{{ widget.get_name_for_id }}"
{% if widget.div_id %}id="{{widget.div_id}}" data-valuecontainerid="form_{{widget.name}}"{% endif %}
{% if widget.a11y_role %}role="{{ a11y_role }}"{% endif %}
{% if widget.a11y_role %}role="{{ widget.a11y_role }}"{% endif %}
{% if widget.a11y_labelledby %}aria-labelledby="form_label_{{widget.name}}"{% endif %}
{% for attr in widget.prefill_attributes %}
data-{{attr}}="{{widget.prefill_attributes|get:attr}}"