Skip to content

Conversation

jake-bassett
Copy link
Contributor

Description

This provides an option to open links in a new tab.

@jake-bassett jake-bassett requested a review from a team as a code owner July 23, 2021 22:27
@codecov
Copy link

codecov bot commented Jul 23, 2021

Codecov Report

Merging #1019 (67295bf) into main (35389a1) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1019   +/-   ##
=======================================
  Coverage   85.06%   85.06%           
=======================================
  Files         820      820           
  Lines       16863    16864    +1     
  Branches     2190     2190           
=======================================
+ Hits        14344    14345    +1     
  Misses       2488     2488           
  Partials       31       31           
Impacted Files Coverage Δ
projects/components/src/link/link.component.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 35389a1...67295bf. Read the comment docs.

@github-actions

This comment has been minimized.

@jake-bassett jake-bassett merged commit ece0d95 into main Jul 23, 2021
@jake-bassett jake-bassett deleted the link-open-in-new-tab branch July 23, 2021 22:35
@github-actions

This comment has been minimized.

@@ -12,6 +12,8 @@ import { EMPTY, Observable } from 'rxjs';
<a
*htLetAsync="this.navData$ as navData"
class="ht-link"
target="{{ this.openInNewTab ? '_blank' : '' }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

how's this differ from the existing way of doing this?

This component takes an ExternalNavigationParams as an input, which includes window handling.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm. I thought it suspicious that we didn't have this already. I though that might be how, but it didn't seem to work when I was playing with it. I'll circle back and try again.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep.

Copy link
Contributor

Choose a reason for hiding this comment

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

ExternalNavigationParams option should support this.

@github-actions
Copy link

Unit Test Results

    4 files  ±0  262 suites  ±0   18m 39s ⏱️ + 3m 42s
945 tests ±0  945 ✔️ ±0  0 💤 ±0  0 ❌ ±0 
952 runs  ±0  952 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit ece0d95. ± Comparison against base commit 35389a1.

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