Skip to content
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

Desktop: Accessibility: Fix incorrect note viewer accessibility label #11744

Conversation

personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Jan 28, 2025

Summary

This pull request fixes the aria-label given to the note viewer. Previously, it was incorrect.

Related #10795.

WCAG guidelines

Testing

Windows: NVDA screen reader

  1. Open Joplin, focus the note editor.
  2. Press esc to move to browse mode.
  3. Press m.
  4. Verify that the screen reader focus is on the note viewer.

@@ -225,7 +225,8 @@ const NoteTextViewer = forwardRef((props: Props, ref: ForwardedRef<NoteViewerCon
style={viewerStyle}
allow='clipboard-write=(self) fullscreen=(self) autoplay=(self) local-fonts=(self) encrypted-media=(self)'
allowFullScreen={true}
aria-label={_('Note editor')}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The NoteTextViewer is not the note editor.

@personalizedrefrigerator
Copy link
Collaborator Author

Closing temporarily — this change seems to cause problems with NVDA.

@personalizedrefrigerator personalizedrefrigerator added desktop All desktop platforms accessibility Related to accessibility labels Jan 28, 2025
@personalizedrefrigerator personalizedrefrigerator changed the title Desktop: Accessibility: Add region role to the note viewer and fix incorrect label Desktop: Accessibility: Fix incorrect note viewer accessibility label Jan 28, 2025
@personalizedrefrigerator personalizedrefrigerator merged commit 4e677d2 into laurent22:dev Jan 30, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Related to accessibility desktop All desktop platforms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant