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

[UWP] Add rendering support for tooltip property #5763

Merged
merged 12 commits into from
May 5, 2021

Conversation

RebeccaAnne
Copy link
Contributor

@RebeccaAnne RebeccaAnne commented May 4, 2021

Related Issue

Fixes #5470

Description

Implemented UWP support for tooltips. Added logic to handle correctly setting the title and tooltip properties to the UI tooltip and automation name and description. Refactored automation name/description setting and tooltip creation for easier code sharing.

This PR does not fix related issue #5579. This means that container contents of a container are still not read in the case where the title is not present.

Sample Card

Added new card at samples\v1.5\Test\TooltipTestCard.json

How Verified

Using the above test card:

  • Validated tooltips display correctly
  • Validated Name and FullDescription properties were set properly in accessibility insights
  • Validated via Narrator that title and tooltip properties were narrated as expected.
Microsoft Reviewers: Open in CodeFlow

@RebeccaAnne
Copy link
Contributor Author

Thanks @jwoo-msft!

@@ -0,0 +1,225 @@
{
Copy link
Member

Choose a reason for hiding this comment

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

nit: it would be great to have a screenshot of this for UWP.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Screenshot's not going to help too much here as the interesting behavior is in the tooltips and the accessibility text, neither of which will be captured by that. Maybe I can update the card to better describe the expected behavior for each case.

Copy link
Contributor

@jonmill jonmill left a comment

Choose a reason for hiding this comment

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

Just one question but LGTM otherwise

source/uwp/Renderer/lib/ActionHelpers.cpp Outdated Show resolved Hide resolved
@RebeccaAnne RebeccaAnne enabled auto-merge (squash) May 5, 2021 21:26
@RebeccaAnne RebeccaAnne merged commit a05ba75 into main May 5, 2021
@RebeccaAnne RebeccaAnne deleted the rebecch/uwptooltiprender branch May 5, 2021 22:34
michaelfarnsworth pushed a commit to michaelfarnsworth/AdaptiveCards that referenced this pull request Nov 10, 2022
* [UWP] Add rendering support for tooltip property

* [iOS] added TooltipTestCard.json to a exclusion list for parsing &
rendering test since the feature isn't developed for iOS

* Add SAL

* Add better descriptions to test card

Co-authored-by: nesalang <Joseph.Woo@microsoft.com>
rankush pushed a commit to rankush/AdaptiveCards that referenced this pull request May 8, 2024
* [UWP] Add rendering support for tooltip property

* [iOS] added TooltipTestCard.json to a exclusion list for parsing &
rendering test since the feature isn't developed for iOS

* Add SAL

* Add better descriptions to test card

Co-authored-by: nesalang <Joseph.Woo@microsoft.com>
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.

[UWP] Renderer support for tooltip property
4 participants