Bug Description
InvisibleMessage.announce() is not announced by VoiceOver while a modal popup (e.g. Dialog, <dialog> opened via showModal()) is open.
The same call works correctly:
- when no modal is open, or
- when the live region is rendered inside the modal subtree.
So the root cause is the location of the framework-managed live regions, not the announce mechanism itself.
Affected Component
InvisibleMessage
Expected Behaviour
announce(message, mode) should be audible to VoiceOver regardless of whether a modal popup is currently open.
Isolated Example
https://stackblitz.com/edit/github-8l5ycfji?file=package.json,index.html,main.js
Steps to Reproduce
The AI generated example contains three buttons, each emitting a varying counter message so VO's identical-text de-duplication doesn't interfere:
- Announce — no dialog open (control) — calls
announce(). -> Works.
- Announce — span lives in body, outside the dialog — calls
announce() while a native aria-modal <dialog> is open. -> Silent under VoiceOver.
- Announce — span lives inside the dialog — writes to a live region rendered as a child of the open
<dialog>. -> Works.
Buttons 1 and 2 hit the same SAP singleton; only the modal-open context differs. Button 3 isolates the fix: a live region inside the modal subtree is announced normally.
- Open the StackBlitz example on MacOS.
- Turn on VoiceOver.
- Click button 1 several times → VO speaks
"1 results available", "2 results available", ...
- Click "Open modal".
- Click button 2 several times → VO is silent, although the on-screen counter increments and the textContent of the announcement span is updated.
- Click button 3 several times → VO speaks
"1 results available", "2 results available", ...
Log Output, Stack Trace or Screenshots
No response
Priority
None
UI5 Web Components Version
2.22.0
Browser
Chrome
Operating System
MacOS
Additional Context
No response
Organization
No response
Declaration
Bug Description
InvisibleMessage.announce()is not announced by VoiceOver while a modal popup (e.g.Dialog,<dialog>opened viashowModal()) is open.The same call works correctly:
So the root cause is the location of the framework-managed live regions, not the announce mechanism itself.
Affected Component
InvisibleMessage
Expected Behaviour
announce(message, mode)should be audible to VoiceOver regardless of whether a modal popup is currently open.Isolated Example
https://stackblitz.com/edit/github-8l5ycfji?file=package.json,index.html,main.js
Steps to Reproduce
The AI generated example contains three buttons, each emitting a varying counter message so VO's identical-text de-duplication doesn't interfere:
announce(). -> Works.announce()while a nativearia-modal<dialog>is open. -> Silent under VoiceOver.<dialog>. -> Works.Buttons 1 and 2 hit the same SAP singleton; only the modal-open context differs. Button 3 isolates the fix: a live region inside the modal subtree is announced normally.
"1 results available","2 results available", ..."1 results available","2 results available", ...Log Output, Stack Trace or Screenshots
No response
Priority
None
UI5 Web Components Version
2.22.0
Browser
Chrome
Operating System
MacOS
Additional Context
No response
Organization
No response
Declaration