Skip to content

[Enhancement Request] Add global required fields notice for WCAG H90 compliance #14960

@sym9

Description

@sym9

Is your feature request related to a problem? Please describe.

Yes. Our accessibility testing team identified a compliance defect within DefectDojo's login form. Currently, multiple forms use an asterisk (*) to indicate mandatory fields, but the meaning of this symbol is never explicitly defined on the page.

According to WCAG Success Criterion 3.3.2 (Labels or Instructions) and technique H90: Indicating required form controls using label or legend , users must be advised of a symbol's meaning before its first use. Failing to define the symbol creates significant barriers for users with cognitive disabilities.

Describe the solution you'd like

I would like to introduce a global instruction notice at the top of form pages that contain mandatory inputs:

Required fields are marked with an asterisk*

Image

This resolves the compliance issue by ensuring that:

  1. The meaning of the asterisk symbol is explicitly stated upfront.
  2. The notice appears structurally in the DOM before the user encounters the first required form field.

Describe alternatives you've considered

Adding "(required)" to every label: This would drastically increase visual clutter across all forms in the application. A single, global notice at the top of the form is cleaner and aligns perfectly with WCAG H90.

Additional context

I have implemented the necessary code changes to render this notice at the top of form layouts. Logic has been verified to ensure the notice appears exclusively on pages that contain mandatory inputs. I am seeking pre-approval to submit this Pull Request against my bugfix branch: wcag-h90-asterisk-label.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions