Skip to content

form field missing a label #3906

Description

@StephDriver

A11y issue because form field appears to be missing a label. This is due to the structure in the HTML where the input tag is included within the label tag:

Example found:

src/themes/OLH/templates/elements/journal/article_filter_form.html:
            <label for="section-{{ section.id }}"><input id="section-{{ section.id }}"
                                                         value="{{ section.id }}" type="checkbox"
                                                         name="filter[]"
                                                         {% if section.id in filters %}checked="checked"{% endif %}>{{ section.name }}
            </label>

The label tag should be closed before the input tag opens.

Metadata

Metadata

Assignees

Labels

a11yIssues that relate to acessibilitygood first issueAn issue that can be addressed by anyone working in the project for the first time.

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Relationships

None yet

Development

No branches or pull requests

Issue actions