Skip to content

Commit

Permalink
fix: simplified markup for external link icon #3260
Browse files Browse the repository at this point in the history
  • Loading branch information
berezinant committed Jan 15, 2024
1 parent 80760e0 commit 199954c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1470,11 +1470,12 @@ div.runnablesample {

.footer--link {
display: inline-flex;
align-items: center; ;
align-items: center;
color: var(--breadcrumb-font-color);
}

.footer--external-link-icon {
.footer--link_external:after {
content: '';
width: 12px;
height: 12px;
margin-left: 4px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
<span>${footerMessage}</span>
<span class="pull-right">
<span>Generated by </span>
<a class="footer--link" href="https://github.com/Kotlin/dokka">
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
<span>dokka</span>
<span class="footer--external-link-icon"></span>
</a>
</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class CustomFooterTest : HtmlRenderingOnlyTestBase() {
renderedContent.match(
A(),
Span(Div("Custom message")),
Span(Span("Generated by "), A(Span("dokka"), Span()))
Span(Span("Generated by "), A(Span("dokka")))
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class FooterMessageTest : HtmlRenderingOnlyTestBase() {
renderedContent.match(
A(),
Span(defaultFooterMessage),
Span(Span("Generated by "), A(Span("dokka"), Span()))
Span(Span("Generated by "), A(Span("dokka")))
)
}

Expand Down

0 comments on commit 199954c

Please sign in to comment.