Skip to content

Add role=alert on error message #3688

Description

@pascalbleuse-tech

Prerequisites

Proposal

Hello,

Currently, on OUDS, error handling in forms is designed to work on input, and messages are triggered correctly during vocalization.

However, if we want validation on field blur, the messages are no longer vocalized because the role="alert" attribute is missing from the error element.

For a11y compatibility, it would be good to add this tag in the OUDS web version and in the documentation.

Thank you.

Motivation and context

Increase a11y compatibility

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status
    Triage

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions