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

[ProgressRing] Remove ProgressRing from UIA tree when it is not active #5930

Conversation

marcelwgn
Copy link
Contributor

Description

Removing ProgressRing from UIA tree when it is not active.

Motivation and Context

Closes #2741

How Has This Been Tested?

Tested with narrator, control does not get announced anymore.

Screenshots (if appropriate):

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Sep 20, 2021
@@ -341,7 +341,8 @@ void ProgressRing::UpdateStates()
// Swap player source to determinate.
SetAnimatedVisualPlayerSource();
UpdateLottieProgress();
}
}
winrt::AutomationProperties::SetAccessibilityView(*this, winrt::AccessibilityView::Content);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have to do this here since VSS setters can't set this on the "root" control

@@ -25,6 +25,7 @@
<VisualState x:Name="Inactive">
<VisualState.Setters>
<Setter Target="LayoutRoot.Opacity" Value="0" />
<Setter Target="LottiePlayer.(AutomationProperties.AccessibilityView)" Value="Raw" />
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Setting this since we don't want the animation to still exist in the UIA tree.

Copy link
Contributor

@ranjeshj ranjeshj left a comment

Choose a reason for hiding this comment

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

:shipit:

@ranjeshj ranjeshj added area-Progress ProgressBar, ProgressRing team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Sep 21, 2021
@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters StephenLPeters merged commit a275e7c into microsoft:main Sep 22, 2021
@ghost
Copy link

ghost commented Apr 14, 2022

🎉Microsoft.UI.Xaml v2.8.0-prerelease.220413001 has been released which incorporates this pull request.:tada:

Handy links:

@ghost
Copy link

ghost commented Jul 13, 2022

🎉Microsoft.UI.Xaml v2.8.0-prerelease.220712001 has been released which incorporates this pull request.:tada:

Handy links:

@ghost
Copy link

ghost commented Jul 18, 2022

🎉Microsoft.UI.Xaml v2.8.0 has been released which incorporates this pull request.:tada:

Handy links:

@ghost
Copy link

ghost commented Jan 3, 2023

🎉Microsoft.UI.Xaml v2.8.2 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Progress ProgressBar, ProgressRing team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ProgressRing: Narrator issue when ring is not visible (IsActive set to false)
3 participants