Skip to content

Added global required fields notice for WCAG H90 compliance#14962

Open
sym9 wants to merge 1 commit into
DefectDojo:masterfrom
sym9:wcag-h90-asterisk-label
Open

Added global required fields notice for WCAG H90 compliance#14962
sym9 wants to merge 1 commit into
DefectDojo:masterfrom
sym9:wcag-h90-asterisk-label

Conversation

@sym9
Copy link
Copy Markdown

@sym9 sym9 commented Jun 5, 2026

⚠️ Pre-Approval check ⚠️

Description

This PR addresses an accessibility compliance defect identified by our accessibility team within DefectDojo's form layouts, specifically targeting WCAG Success Criterion 3.3.2 (Labels or Instructions) and technique H90: Indicating required form controls using label or legend.

Currently, multiple forms across the application use an asterisk * to denote mandatory input fields, but the meaning of this symbol is never explicitly stated on the page. This creates a barrier for users with cognitive disabilities.

  • The Asterisk is Ambiguous: An asterisk is not a universal law; it is a design convention. In some web systems, an asterisk actually indicates an optional field. Without a definition, the requirement to provide clear instructions fails.

  • Cognitive Accessibility: Users with cognitive disabilities may not know what a standalone symbol means without an explicit statement.

Changes implemented:

  • Added a global, highly accessible notice at the top of form: Required fields are marked with an asterisk*
  • Positioned the notice at the top of page fields so users encounter it before the first mandatory input field.
  • Added conditional logic to ensure the notice only renders on pages containing forms with mandatory fields.

Test results

  • Manual Testing: Verified across login and primary form pages to ensure the message renders accurately only when required fields exist.
image image

Documentation

No documentation updates are required in the /docs folder as this is a standard accessibility compliance fix.

@sym9 sym9 requested review from Maffooch and mtesauro as code owners June 5, 2026 12:49
@github-actions github-actions Bot added the ui label Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant