Skip to content

Commit

Permalink
fix(markdown): external icon for target _blank (#2070)
Browse files Browse the repository at this point in the history
* fix(markdown): external icon for target _blank

* fix(markdown): styling adjustments

---------

Co-authored-by: github-actions <[email protected]>
  • Loading branch information
owilliams320 and github-actions authored Feb 22, 2024
1 parent ff89cb9 commit 13280fc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions libs/markdown/src/lib/markdown.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,23 @@
background-color: transparent;
}

a[target='_blank'] {
display: inline-flex;
align-items: center;
position: relative;
padding-right: 16px;

&::after {
content: 'open_in_new';
font-family: var(--mdc-icon-font, 'Material Symbols Outlined');
padding-left: 2px;
text-decoration: none;
position: absolute;
right: 0;
top: 1px;
}
}

a:active,
a:hover {
outline-width: 0;
Expand Down

0 comments on commit 13280fc

Please sign in to comment.