Skip to content

Conversation

@chiaramooney
Copy link
Contributor

@chiaramooney chiaramooney commented Jul 30, 2024

Description

Type of Change

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

Why

Add support for accessibilityPosInSet and accessibilitySetSize to Fabric.

Resolves #13077
Resolves #13086
Resolves #12512
Resolves #12511
Resolves #13093
Resolves #13092
Resolves #13090
Resolves #13089
Resolves #13087
Resolves #13084
Resolves #13081
Resolves #13080
Resolves #13078
Resolves #13079
Resolves #13088

What

  • Adds accessibilityPosInSet and accessibilitySetSize to Fabric
  • Adds UIA information for PositionInSet and SizeOfSet to accessibility tree dumps
  • Adds tests for both props for key core components

Testing

Check setting and removing both props on View control. Will validate which other controls also automatically work before merging. Test exists in E2E testing to track data stored in UIA tree.

Changelog

Should this change be included in the release notes: yes

Add support for accessibilityPosInSet and accessibilitySetSize to Fabric.

@chiaramooney chiaramooney requested a review from a team as a code owner July 30, 2024 22:39
@microsoft-github-policy-service microsoft-github-policy-service bot added Area: Accessibility Area: ActivityIndicator Area: Component Views Area: Fabric Support Facebook Fabric Area: Image Area: ScrollView Area: Switch Area: Text Area: TextInput Area: View Area: View Props https://reactnative.dev/docs/view#props Parity: Fabric vs. Paper RNW Fabric does not look or behave like RNW Paper New Architecture Broad category for issues that apply to the RN "new" architecture of Turbo Modules + Fabric labels Aug 1, 2024
accessibilityLabel="Press to submit your application!"
accessibilityRole="Button"
accessibilityHint="Submit Button"
accessibilityPosInSet={1}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also add these to: \vnext\src-win\Libraries\Components...?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No that won't be needed because these are just the example files, not the actual source! The examples live in packages/@rnw and the source for the button control lives in vnext/src-win...

Copy link
Contributor

@TatianaKapos TatianaKapos left a comment

Choose a reason for hiding this comment

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

LGTM! :)

@chiaramooney chiaramooney merged commit 6e887b4 into microsoft:main Aug 5, 2024
@chiaramooney chiaramooney deleted the cm-access-set branch August 5, 2024 17:06
acoates-ms pushed a commit to acoates-ms/react-native-windows that referenced this pull request Aug 30, 2024
…ric (microsoft#13518)

* Add Support for AccessibilityPosInSet

* Change files

* Format

* Add testing

* Fix Missing TestID

* Add Props to Accessibility Tree Dumps

* Update Fabric Snapshots

* Update Touchable Example

* Update Snapshotes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment