Skip to content

Conversation

gsaran25
Copy link
Contributor

@gsaran25 gsaran25 commented Aug 8, 2025

Description

The accessibilityAnnotation property was introduced in RNW. However, we did not implement logic to raise a UIA change event when its values are updated.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Why

The accessibilityAnnotation property was introduced in RNW. However, we did not implement logic to raise a UIA change event when its values are updated.

Resolves [#14999]

What

Added events for the below properties.
UIA_AnnotationAnnotationTypeIdPropertyId
UIA_AnnotationAnnotationTypeNamePropertyId
UIA_AnnotationAuthorPropertyId
UIA_AnnotationDateTimePropertyId

Screenshots

Developed in mac, Could not able to test.

Testing

Developed in mac, Could not able to test.

Changelog

Should this change be included in the release notes: yes

Add a brief summary of the change to use in the release notes for the next release.
Added UIA update event for change in annotation properties.

Microsoft Reviewers: Open in CodeFlow

@gsaran25 gsaran25 requested a review from a team as a code owner August 8, 2025 09:20
Copy link
Contributor

@vineethkuttan vineethkuttan left a comment

Choose a reason for hiding this comment

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

Please add the requested change.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity) label Aug 8, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity) label Aug 8, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity) label Aug 8, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity) label Aug 8, 2025
@vineethkuttan
Copy link
Contributor

/azp run PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vineethkuttan
Copy link
Contributor

/azp run PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds UIA (UI Automation) event triggers for the accessibilityAnnotation property in React Native Windows. When accessibilityAnnotation property values change, the system will now properly raise UIA change events to notify accessibility tools.

Key changes:

  • Added new overloaded UpdateUiaProperty function for long values
  • Implemented UpdateUiaPropertiesForAnnotation function to handle all annotation property updates
  • Integrated annotation property change notifications into the accessibility update workflow

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
UiaHelpers.h Added function declarations for long value UIA updates and annotation property handling
UiaHelpers.cpp Implemented UIA property update functions for annotation properties
CompositionViewComponentView.cpp Integrated annotation property change notifications into accessibility update flow
change/react-native-windows-a648cb52-86ff-47b1-b2be-04d168a7f110.json Added change file for version tracking

@vineethkuttan
Copy link
Contributor

/azp run PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@anupriya13
Copy link
Contributor

@gsaran25 Please don't remove the changelog section of PR description and add values appropriately.
yes for changelog and
1 line summary
The format should be same as it is used for generating release notes.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity) label Aug 11, 2025
@anupriya13 anupriya13 self-assigned this Aug 11, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity) label Aug 11, 2025
@gsaran25 gsaran25 requested a review from anupriya13 August 11, 2025 09:26
@vineethkuttan vineethkuttan changed the title Added UIA Event Triggers for accessibilityAnnotation Property Changes [Fabric] Added UIA Event Triggers for accessibilityAnnotation Property Changes Aug 11, 2025
@vineethkuttan vineethkuttan merged commit b26e704 into microsoft:main Aug 11, 2025
58 checks passed
protikbiswas100 pushed a commit that referenced this pull request Sep 10, 2025
… Changes (#15039)

* Added UIA Event Triggers for accessibilityAnnotation Property Changes

* Added UIA Event Triggers for accessibilityAnnotation Property Changes

* wrapped to single call - UpdateUIAPropertiesForAnnotation

* Annotation Props UIA Event method call

* removed yarn change file

* Review Changes done

* UpdateUiaPropertyForAnnotation method removed.

* UpdateUiaProperty long method param added.

* yarn format changes

* AccessibilityAnnotation default valued assigned.

---------

Co-authored-by: Vineeth <[email protected]>
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.

3 participants