fix(web): announce only the truncation notice from the history bar (#814)

- _renderHistoryTruncationBanner sets aria-live to polite for the truncation notice and off for a reload-only bar, which re-renders on nearly every scroll-up in a busy tab; its button stays reachable with Tab.
- docs: comma in the Reload eligibility list, and the live-region rule in the invariants paragraph.
This commit is contained in:
Hadrien Kerlero committed 2026-11-22 23:49:19 +01:00
1 parent 6f5b3aca23
commit 7794f74282
3 files changed
+18 -1

No files matched your search

+5
View File
@@ -10056,6 +10056,11 @@ class CodemanApp {
return;
}
// `#historyTruncationBar` is a polite live region. Only the truncation
// notice is news worth announcing; a reload-only bar re-renders on every
// eligible scroll-up in a busy tab, so it stays silent and is reached by Tab.
// Set before the rewrite below, so the new content is judged by it.
bar.setAttribute('aria-live', showNotice ? 'polite' : 'off');
bar.textContent = '';
const label = document.createElement('span');
label.className = 'history-trunc-text';