Skip to content

Conversation

@vineethkuttan
Copy link
Contributor

@vineethkuttan vineethkuttan commented Sep 25, 2025

Description

Fixing UIA Clipping property for Modal Component.

Type of Change

Erase all that don't apply.

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

Why

Will fix the UIA clipping state of Modal Component.

Resolves [microsoft/react-native-gallery/issues/650]

What

Clipped

Screenshots

image

Testing

If you added tests that prove your changes are effective or that your feature works, add a few sentences here detailing the added test scenarios.

Optional: Describe the tests that you ran locally to verify your changes.

Changelog

Should this change be included in the release notes: yes

UIA Clipping property for Modal Component is fixed.

Microsoft Reviewers: Open in CodeFlow

@vineethkuttan vineethkuttan marked this pull request as ready for review September 25, 2025 16:37
@vineethkuttan vineethkuttan requested a review from a team as a code owner September 25, 2025 16:37
// Component appears clipped, but check if it's modal content
// Modal content may appear clipped due to lack of parent relationships
// but should still be considered visible if it's in its own window
try {
Copy link
Contributor

Choose a reason for hiding this comment

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

this property (clip state) will be queried very frequently like UI nav, refresh, accessibility calls. we shouldn't use try catch here it will be perf hit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will remove it then.

Copy link
Contributor

@iamAbhi-916 iamAbhi-916 left a comment

Choose a reason for hiding this comment

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

Lgtm!

@vineethkuttan vineethkuttan merged commit cc9d7a0 into microsoft:main Sep 29, 2025
58 checks passed
vineethkuttan added a commit that referenced this pull request Sep 29, 2025
* Fixing Clipped Property for Modal Component

* Yarn Change

* Removed try catch.
@vineethkuttan vineethkuttan deleted the fixModalProvider branch October 7, 2025 05:29
vineethkuttan added a commit that referenced this pull request Oct 8, 2025
* [Fabric] Fixing Clipped Property for Modal Component (#15176)

* Fixing Clipped Property for Modal Component

* Yarn Change

* Removed try catch.

* Review Changes
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.

4 participants