Skip to content

Commit

Permalink
feat(docs-infra): add open_in_new icon to external nav-item links (#4…
Browse files Browse the repository at this point in the history
…6384)

add a mat open_in_new icon to the blog external link present in the
left sidenav on smaller screens so that it can be distinguished from
the other (/internal) links

this is a continuation of #45876

PR Close #46384
  • Loading branch information
dario-piotrowicz authored and AndrewKushnir committed Jun 21, 2022
1 parent 8fac299 commit 639277b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion aio/src/app/layout/nav-item/nav-item.component.html
@@ -1,7 +1,7 @@
<div *ngIf="!node.children">
<a href="{{node.url}}" [ngClass]="classes" title="{{node.tooltip}}"
class="vertical-menu-item">
<span>{{node.title}}</span>
<span class="vertical-menu-item-text">{{node.title}}</span>
</a>
</div>

Expand Down
16 changes: 16 additions & 0 deletions aio/src/styles/1-layouts/sidenav/_sidenav.scss
Expand Up @@ -91,6 +91,22 @@ aio-nav-menu {
}
}

a.vertical-menu-item {
&[href^="http:"],
&[href^="https:"] {
.vertical-menu-item-text {
display: inline-flex;
align-items: center;
&::after {
content: "\e89e"; // codepoint for "open_in_new"
margin-left: 0.3rem;
line-height: normal;
font-family: "Material Icons";
}
}
}
}

button.vertical-menu-item {
border: none;
background-color: transparent;
Expand Down

0 comments on commit 639277b

Please sign in to comment.