Projet

Général

Profil

0001-a11y-don-t-mark-individual-checkboxes-as-required-41.patch

Frédéric Péters, 28 mars 2020 10:25

Télécharger (910 octets)

Voir les différences:

Subject: [PATCH] a11y: don't mark individual checkboxes as required (#41130)

 wcs/qommon/form.py | 2 ++
 1 file changed, 2 insertions(+)
wcs/qommon/form.py
1159 1159
            if self.options_with_attributes and option[-1].get('disabled'):
1160 1160
                element_kwargs['disabled'] = 'disabled'
1161 1161
                self.disabled_options.append(name)
1162
            # don't mark individual checkboxes as required
1163
            element_kwargs.pop('required', None)
1162 1164

  
1163 1165
            if value and key in value:
1164 1166
                checked = True
1165
-