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

Announcing removing widgets from dashboard #2537

Merged
merged 4 commits into from
Apr 8, 2024

Conversation

guimafelipe
Copy link
Contributor

@guimafelipe guimafelipe commented Apr 4, 2024

Summary of the pull request

This PR adds the functionality for the narrator to say "Widget removed" whenever a widget is removed from the dashboard.

References and relevant issues

https://dev.azure.com/microsoft/OS/_workitems/edit/49357314

Detailed description of the pull request / Additional comments

When a user uses narrator and clicks, it should tell them that the action was completed. To do that, we use the screen reader service, that has a hidden text block acting as a live region on shell page.

We also changed the LiveSetting to "Assertive" on this text block to ensure it will always have priority on the announcements. Without being "Assertive", it may not be announced in result of some new control getting focus.

Validation steps performed

PR checklist

@guimafelipe guimafelipe marked this pull request as ready for review April 5, 2024 18:57
@@ -329,6 +332,12 @@ private async void HandleAdaptiveAction(RenderedAdaptiveCard sender, AdaptiveAct
// https://github.com/microsoft/devhome/issues/644
}

public void AnnounceDeleted()
Copy link
Collaborator

Choose a reason for hiding this comment

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

I know it's gross to Application.Current.GetService the ScreenReaderService in WidgetControl, but can we do this there?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@guimafelipe guimafelipe merged commit bbd93a0 into main Apr 8, 2024
4 checks passed
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.

Accessibility fixes for 0.13 milestone
3 participants