Skip to content

Inconsistent Screen Reader Announcement for Word Wrap Toggle Button #3475

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Jatin24062005 opened this issue May 7, 2025 · 1 comment · Fixed by #3476
Closed

Inconsistent Screen Reader Announcement for Word Wrap Toggle Button #3475

Jatin24062005 opened this issue May 7, 2025 · 1 comment · Fixed by #3476
Labels
Area:Accessibility Category for accessibility related features and bugs Bug Error or unexpected behaviors

Comments

@Jatin24062005
Copy link
Contributor

p5.js version

No response

What is your operating system?

None

Web browser and version

No response

Actual Behavior

When using a screen reader in the Editor Accessibility settings, there's an inconsistency in the announcement of the Word Wrap control:

✅ The "Wrap" component label is announced correctly by screen readers.

However, when focusing on the toggle button (On/Off), the screen reader says "Line wrap is enabled/disabled", which differs from the expected terminology.

This mismatch can cause confusion for users relying on assistive technologies.

Image

Expected Behavior

Screen reader should consistently announce "Word Wrap is On/Off" (or a similar matching phrase) on the toggle button to align with the "Wrap" component labeling.

Steps to reproduce

Steps:

  1. Open the editor settings.
  2. Navigate to Accessibility options.
  3. Focus on the Word Wrap toggle button using a screen reader.
  4. Observe the mismatch in the spoken text.
@Jatin24062005 Jatin24062005 added the Bug Error or unexpected behaviors label May 7, 2025
@raclim raclim added the Area:Accessibility Category for accessibility related features and bugs label May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:Accessibility Category for accessibility related features and bugs Bug Error or unexpected behaviors
Projects
None yet
2 participants