Skip to content

Flutter Web: Alert messages require role="alert" (Accessibility) #162287

Closed
@jcollins-disney

Description

@jcollins-disney

Use case

Any element that displays a brief, important, time-sensitive message in a way that attracts the user's attention without interrupting the user's task require the alert role.

Proposal

Add the WAI-ARIA role alert to the the available semantics roles in existing error message-related widget libraries.

Examples of error messages include (but are not limited to):

  • After a user unsuccessfully fills in a form because some of the data is in the incorrect format, text is added to the existing form which reads "5 errors on page". The screen reader announces the same message.
  • Text description that identifies required fields that were not completed
  • Text description when the user provides information that is not in the list of allowed values
  • Text description when user input falls outside the required format or values
  • Providing suggested correction text
  • Providing spell checking and suggestions for text input

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)c: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Fluttercustomer: castawayplatform-webWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-text-inputOwned by Text Input teamtriaged-text-inputTriaged by Text Input team

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions