nav
nav copied to clipboard
Align inputs in forms using CSS instead of `<label> </label>`
Label tags like this <label> </label>
are used solely for styling in NAV (which is both semantically ill-suited and a bad practice when it comes to accessibility).
...
So the SonarCloud complaint is technically correct, but factually <label> </label>
is not used in form control.
Originally posted by @podliashanyk in https://github.com/Uninett/nav/pull/3139#discussion_r1800922599
Occurrences:
- [ ]
python/nav/web/templates/alertprofiles/filter_form.html
-alertprofiles/filters/new
,alertprofiles/filters/edit/<filter_id>
- [ ]
python/nav/web/templates/custom_crispy_templates/submit_field.html
- anything callingSubmitField
withhas_empty_label=True