WarUI

Configurable Live Region Announcer

GRID-A23-F12P0baselinePlanned

A central announcer service manages polite and assertive live regions, debouncing and message templates. It is localizable and can be extended with custom announcements. All announcing features use it, so behaviour stays consistent, and apps can suppress or override any message.

Planned. This page shows the specification from issue #203. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A grid with buttons to trigger sort, filter, selection and a custom announcement. A log shows the live region contents and politeness.

Expected behavior

Changing the locale changes announcement text. The beforeAnnounce hook can modify or cancel a message, and cancelled messages appear struck-through in the log.

Planned API surface

announcerannounce()messageslocaleannouncerDisabledbeforeAnnounceannounce event

Acceptance criteria

  • The live regions exist in the DOM before the first announcement. (pending)
  • Identical consecutive messages are still announced, for example by clearing and re-inserting them. (pending)
  • Returning false from beforeAnnounce cancels the announcement. (pending)
  • All built-in messages are keys in a messages object, with interpolation for counts and names. (pending)