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

fix(android-needs-review): make links in unified cards not also select the cards when clicked #3682

Merged
merged 1 commit into from
Nov 21, 2020

Conversation

dbjorge
Copy link
Contributor

@dbjorge dbjorge commented Nov 20, 2020

Description of changes

Before this PR, when you click on a link that appears in the body of a card in unified's results view (eg, Color Contrast results as of the needs review feature), the click event bubbles up out of the link component, so in addition to opening the link, it also select/deselects the card. This PR prevents the event from propagating.

Note that the same basic issue affects web and this PR does not fix that case; the link components are product specific so they need separate fixes.

Before:
animation showing clicks on the link selecting the card

After:
animation showing clicks on the link not selecting the card

Pull request checklist

  • [n/a] Addresses an existing issue: #0000
  • Ran yarn fastpass
  • Added/updated relevant unit test(s) (and ran yarn test)
  • Verified code coverage for the changes made. Check coverage report at: <rootDir>/test-results/unit/coverage
  • PR title AND final merge commit title both start with a semantic tag (fix:, chore:, feat(feature-name):, refactor:). See CONTRIBUTING.md.
  • (UI changes only) Added screenshots/GIFs to description above
  • (UI changes only) Verified usability with NVDA/JAWS

@dbjorge dbjorge requested a review from a team as a code owner November 20, 2020 22:33
Copy link
Contributor

@lisli1 lisli1 left a comment

Choose a reason for hiding this comment

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

LGTM

@dbjorge dbjorge merged commit 904d84b into microsoft:master Nov 21, 2020
@dbjorge dbjorge deleted the fix-electron-link-prop branch November 21, 2020 00:18
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.

2 participants