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 input fields not associated with labels #11700

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

pedr
Copy link
Collaborator

@pedr pedr commented Jan 21, 2025

Summary

Add labels to note properties input fields

Accessibility

Related to technique H44 that is here satisfying the WCAG 1.3.1

Goal
Information about content structure is available to more people.

Testing

  1. Open Note properties
  2. Press edit button on any input field
  3. Now label should be associated with the input field and the screen reader should name the input

@pedr pedr added desktop All desktop platforms accessibility Related to accessibility labels Jan 21, 2025
@@ -334,6 +336,8 @@ class NotePropertiesDialog extends React.Component<Props, State> {
}}
onKeyDown={event => onKeyDown(event)}
style={styles.input}
id={key}
name={key}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thank you for working on this!

Why is the name={} prop included here? (I think only id is necessary).

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.

2 participants