Skip to content

Let Message opt out of its live-region role when composed inside another live region #385

Description

@woksin

Message (4.1.1) hard-codes role="alert" for severity="error", and role="status" otherwise, with no way to turn it off. Placed inside an existing live region, for example a focused error summary that is itself role="alert", it nests live regions, so screen readers announce the messages twice. Cratis/Ante#151 had to replace Message with plain elements in its error summary to avoid this.

Proposal: a role or live={false} prop that renders the message as a plain element, so it can be composed inside an outer live region. Keep the current default.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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