Not part of MR !17968
This page is an experimental proposal, not a settled recommendation and not the behaviour of the merge request. The merge request adds a landmark and leaves Drupal’s announcement policy alone.
The three messages below are real live regions, so a screen reader may announce them when this page opens. The experiment is the separate notification after the button, not those messages.
The idea is one polite notification that system messages are available, followed by navigation to the named region. It could help someone who is elsewhere on the page when messages arrive. It also risks repeating what the messages’ own live roles already say.
Announcement sent.
The question Curtis Wilcox raised
The discussion is whether a change should also notify people that messages are available, not only make them easier to find. The points to weigh:
- Individually or as one notification? Announcing every important message could be noisy. One “system messages are available” notification is quieter, but it is less specific.
- What counts as important? An error that blocks the task may deserve its own announcement. A routine confirmation may not need another.
- How does the person then navigate? The named “System messages” region gives a direct route; headings and reading order remain available.
- How is duplication avoided? The messages already have live roles, and
Drupal.announce()handles the JavaScript path. A second notification could repeat them; it would need rules for when it is allowed and when it is suppressed. - Which live region speaks first? Two live regions updating close together can be announced in an order that varies by browser and screen reader. The experiment does not settle that.
What this page shows
- The messages are real live regions inside a named region, as on the After page.
- The button adds one polite notification to a separate, initially empty live region. It does not run on page load.
- The notification points to the landmark. It does not read the message text again.
- This is a discussion aid, not evidence that the approach works in every screen reader. The page does not claim that the notification is announced, only that this is the markup an implementation would use.
Back to the overview.