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

Improve Button Accessibility for Screen Readers #7

Open
brylie opened this issue May 4, 2024 · 0 comments
Open

Improve Button Accessibility for Screen Readers #7

brylie opened this issue May 4, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@brylie
Copy link
Member

brylie commented May 4, 2024

Currently, the buttons in our Flutter application may not have sufficient descriptive labels for screen readers. This creates a barrier for users with visual impairments. To enhance accessibility, we should review button labels and ensure they effectively convey the buttons' actions and purpose.

Tasks:

  • Audit existing button labels: Carefully review the text and icons used on each button. Determine if they provide enough context for screen reader users to understand the button's function.
  • Add semanticsLabel where needed: For buttons where the visual label may not be fully descriptive, add the semanticsLabel property to ElevatedButton (or other button widgets used) and provide a clear textual description.
  • Test with a screen reader: Use a screen reader (such as VoiceOver on iOS or TalkBack on Android) to test the updated buttons. Ensure the added descriptions accurately reflect the button's purpose.

Example:

ElevatedButton(
  onPressed: () => kioskState.selectGender(Gender.female),
  // ... other properties
  semanticsLabel: 'Select female gender', // Example of a more descriptive label
),

Additional Considerations:

  • Consult web accessibility guidelines (e.g., WCAG) for best practices on button labeling.
  • Consider providing a means to toggle enlarged text for users with low vision.
@brylie brylie added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant