Skip to content

Add accessibility support to the Widget class #2293

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elshadsm
Copy link
Contributor

Enhance the Widget class by introducing new accessibility-related properties and a function:

The accessibilityLabel is an accessibility property that provides a textual description of the view, allowing screen readers to convey the purpose or function of UI elements to visually impaired users.

The accessibilityHidden is used to hide the view from accessibility services when a screen reader is active.

The accessibilityFocus is a function to focus on the view when accessibility services are enabled, typically used to assist navigation via screen readers.

  • Code is up-to-date with current master
  • Code is provided under the terms of the Tabris.js license

Fixes #

@elshadsm elshadsm force-pushed the pr-accessibility branch 3 times, most recently from d7cac2e to 7958398 Compare May 20, 2025 15:56
@karolszafranski
Copy link
Member

Looks good to me 👍

Please wait with merging until we're done with client implementations.

Copy link
Member

@mknauer mknauer left a comment

Choose a reason for hiding this comment

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

Just the minor wording change from view to widget, everything else looks great.

@elshadsm elshadsm force-pushed the pr-accessibility branch from 7958398 to ed4112f Compare May 21, 2025 08:00
Enhance the Widget class by introducing new accessibility-related
properties and a function:

The `accessibilityLabel` is an accessibility property that provides a
textual description of the view, allowing screen readers to convey the
purpose or function of UI elements to visually impaired users.

The `accessibilityHidden` is used to hide the view from accessibility
services when a screen reader is active.

The `accessibilityFocus` is a function to focus on the view when
accessibility services are enabled, typically used to assist navigation
via screen readers.
@elshadsm elshadsm force-pushed the pr-accessibility branch from ed4112f to eb729bf Compare May 21, 2025 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants