Skip to content

[Bug] aria-live="polite" on entire tone panel causes excessive screen reader announcements #14

@Aster1630

Description

@Aster1630

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

  1. Enable a screen reader (e.g. VoiceOver, NVDA).
  2. Open a supported page (Gmail, a contenteditable field, etc.).
  3. Begin typing a message of 15+ words to trigger the panel.
  4. 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

  • Writing Assistant

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions