Describe the bug
The writing assistant panel element (#mt-panel) has aria-live="polite" set on it directly. This means every change to any content inside the panel tone label, suggestions, grammar issues, stats, server status dot triggers a screen reader announcement. For a user typing a document, this results in a constant stream of interruptions as the panel updates in real time.
To reproduce
- Enable a screen reader (e.g. VoiceOver, NVDA).
- Open a supported page (Gmail, a contenteditable field, etc.).
- Begin typing a message of 15+ words to trigger the panel.
- Continue typing the screen reader announces panel updates on every debounce cycle.
Expected behavior
aria-live should be scoped only to the suggestions container (#mt-suggestions) or the grammar issues section, not the entire panel. Static elements like the tone label and stats can update silently.
Environment
- Browser: Chrome / Firefox
- OS: Any
- MindTab version: 1.2.0
- Grammar server in use: Yes / No (affects grammar section)
Module(s) affected
Console errors
None.
Additional context
Fix: remove aria-live="polite" from #mt-panel in mtBuildPanel() in content_scripts/toneTranslator.js and add aria-live="polite" and aria-atomic="false" to #mt-suggestions only.
Describe the bug
The writing assistant panel element (
#mt-panel) hasaria-live="polite"set on it directly. This means every change to any content inside the panel tone label, suggestions, grammar issues, stats, server status dot triggers a screen reader announcement. For a user typing a document, this results in a constant stream of interruptions as the panel updates in real time.To reproduce
Expected behavior
aria-liveshould be scoped only to the suggestions container (#mt-suggestions) or the grammar issues section, not the entire panel. Static elements like the tone label and stats can update silently.Environment
Module(s) affected
Console errors
None.
Additional context
Fix: remove
aria-live="polite"from#mt-panelinmtBuildPanel()incontent_scripts/toneTranslator.jsand addaria-live="polite"andaria-atomic="false"to#mt-suggestionsonly.