Loading
Add scoped polite preview close feedback (#3350427)
Summary
Add scoped polite close feedback for #3350427, including repeated open/close cycles.
SPP open -> clear its persistent status region, cancel pending close feedback
SPP close -> restore editor focus -> wait 200 ms -> Preview closed.
Refresh / unrelated core dialog -> no added SPP messageEvidence
- Before: baseline NVDA reports Preview focus on close without an explicit closed message. The first candidate using Drupal.announce spoke its message once, but NVDA/Chrome omitted it on subsequent closures. After: a single SPP-owned polite, atomic status region is cleared on opening. Close button and repeated Escape trials each speak Preview closed. after Preview button feedback. It does not modify Drupal's shared live region.
- Original Speech Viewer JPEGs and labelled manual transcriptions are in tests/playwright/evidence/close-feedback-20261011/README.md. Actual reader/browser: NVDA 2026.2, Chrome Canary 157.0.8083.0, Drupal 11.4.8 with Claro/Olivero. Copying speech text was blocked by Windows integrity, so the original screenshots are retained. Reader verbosity was not rechecked against the earlier portable-reader baseline.
- Maintainer listening feedback found the close message helpful, distinguishing broader repetitive Drupal terminology from preview feedback. This is exploratory maintainer acceptance, not a blind participant usability study. VoiceOver/Safari remains untested.
- All 80 JavaScript tests and eight Edge browser cases passed; ESLint passed for changed files. The browser regression checks one status region across rebuilds, focus return, Close, Escape, reopening, View mode refresh and an unrelated core dialog. No added open/refresh message.
Merge Danger
Door: two-way
Blast Radius: speech
Adds one short message on an actual SPP close. Reopening cancels queued feedback. No persisted schema changes or alteration to unrelated core dialogs. Windows evidence does not replace outstanding VoiceOver/Safari acceptance or justify marking the upstream issue Fixed on its own.
Edited by Chris Weber