Skip to content

In Docs / Forms / Validation, No programmatic link between error messages dans input fields #37405

@Aniort

Description

@Aniort

Prerequisites

Describe the issue

Hello,
first, there's no visual indication of required fields (like a "" or something else but explained in text before the form ex.: " Required f'ields"),
it's a violation of WCAG 3.3.2 Labels or instructions,
There is no programmatic link between error messages and input fields after a form validation,
it's a violation of WCAG 3.3.1 Error Identification,
to correct this , you can add an aria-labelledby with the id of the label and the id of the error message,
may also use an aria-invalid="true"

Reduced test cases

https://getbootstrap.com/docs/5.2/forms/validation/

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Chrome, Firefox

What version of Bootstrap are you using?

5.2.x

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions