Skip to content

Change "aria-invalid" attribute in response to auto-validation in data-input components #4981

@sadtrick

Description

@sadtrick

Currently, the data-input components (checkbox, radio, input, textarea, and select) implement some form of auto-validation to display an invalid message. However, as far as I understand, the "aria-invalid" attribute is not updated as part of this auto-validation process; it only changes via the "validation" prop ("invalid", "valid", or "no-validation").

For better accessibility and consistency, it would be helpful if the "aria-invalid" attribute automatically reflected the result of the component’s internal validation as well, not just the explicit "validation" prop.

Suggestion:
Please adjust the components so that "aria-invalid" is also set appropriately whenever an auto-validation error occurs, ensuring screen readers can provide accurate feedback to users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions