From 13280fc1b858c4dfb6a8fd4d13cc7624078f8bd2 Mon Sep 17 00:00:00 2001 From: oseer williams Date: Thu, 22 Feb 2024 13:05:02 -0500 Subject: [PATCH] fix(markdown): external icon for target _blank (#2070) * fix(markdown): external icon for target _blank * fix(markdown): styling adjustments --------- Co-authored-by: github-actions --- libs/markdown/src/lib/markdown.component.scss | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/libs/markdown/src/lib/markdown.component.scss b/libs/markdown/src/lib/markdown.component.scss index 59d77410b8..21bf494900 100644 --- a/libs/markdown/src/lib/markdown.component.scss +++ b/libs/markdown/src/lib/markdown.component.scss @@ -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;