form field -> description-field usage as description, maybe better accessibility
Can we treat the db field of a form field “description” differently? Currently the field “description” is displayed as label-title-attribute, which I find confusing because the field is called “description” but is used as title and also because this field is not displayed visibly. This also means that no further information can be displayed, for example: what should be entered in the field or in what form.
Currently for example:
<label for="powermail_field_url" class="form-label powermail_label" title="My Field Description">Url</label>
<input .... />
I would suggest improving this by changing this to:
<label for="powermail_field_url" class="form-label powermail_label" aria-labelledby="powermail_field_description_{field.marker}">Url</label>
<input .... />
<div id="powermail_field_description_{field.marker}">{field.description}</div>
And if you really want to keep a title attribute, provide a separate new field for it.
"Conversely, content being put in the title attribute is being hidden from the (probable) majority of your users. If information is being hidden from the majority of your users, then it's likely not necessary." https://www.a11yproject.com/posts/title-attributes/