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

[WIP] Add Control Type Information to UIA Tree #11876

Merged
merged 6 commits into from
Jul 18, 2023

Conversation

chiaramooney
Copy link
Contributor

@chiaramooney chiaramooney commented Jul 11, 2023

Description

Type of Change

  • New feature (non-breaking change which adds functionality)

Why

Add Control Type information to UIA tree to improve accessibility information.

What

  • Added update for control type information upon fast refresh.
  • Added ability to specify for Text and Edit control types.
  • Added DefaultControlType property to all core components to give components a default role. Previously all controls defaulted to Group control type. Now controls default to the following types:
Component Control Type
View/View-based Controls (Pressable, Touchable*) Group
Button Button
Text Text
Image Image
Switch Button
ScrollView ScrollBar
TextInput Edit
ActivityIndicator ProgressView

Testing

Tested all controls and confirmed correct types appear in AccessibilityInsights tool. Types can be altered by the developer using the accessibilityRole or role props and will update upon fast refresh. Control type will return to default value if accessibilityRole or role is not specified.

Microsoft Reviewers: codeflow:open?pullrequest=https://github.com/microsoft/react-native-windows/pull/11876&drop=dogfoodAlpha

@chiaramooney chiaramooney requested a review from a team as a code owner July 11, 2023 18:56
@chiaramooney chiaramooney merged commit e5ff3fa into microsoft:main Jul 18, 2023
44 checks passed
@chiaramooney chiaramooney deleted the cm-blue-box branch July 18, 2023 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants