Skip to content

Commit

Permalink
[TASK] Do not add a link to the active language item in language menu…
Browse files Browse the repository at this point in the history
… because we are already on that page
  • Loading branch information
schmigotzki authored and benjaminkott committed Jun 15, 2023
1 parent 13392b6 commit 7d3d7d6
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
16 changes: 9 additions & 7 deletions Resources/Private/Partials/Page/Navigation/Language.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@
<f:for each="{languagenavigation}" as="item">
<li class="{f:if(condition: item.active, then: 'active')} {f:if(condition: item.available, else: 'inactive')}">
<f:if condition="{item.available}">
<f:then>
<a href="{item.link}" hreflang="{item.hreflang}" title="{item.title}">
<f:if condition="!{item.active}">
<f:then>
<a href="{item.link}" hreflang="{item.hreflang}"">
<span>{item.navigationTitle}</span>
</a>
</f:then>
<f:else>
<span>{item.navigationTitle}</span>
</a>
</f:then>
<f:else>
<span>{item.navigationTitle}</span>
</f:else>
</f:else>
</f:if>
</f:if>
</li>
</f:for>
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/Css/bootstrap5-rte.css
Original file line number Diff line number Diff line change
Expand Up @@ -15495,7 +15495,7 @@ textarea.form-control.error {
}
}

.footer-language .language-menu .active a {
.footer-language .language-menu .active {
font-weight: bold;
}

Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/Css/bootstrap5-rte.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Resources/Public/Css/bootstrap5-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -15495,7 +15495,7 @@ textarea.form-control.error {
}
}

.footer-language .language-menu .active a {
.footer-language .language-menu .active {
font-weight: bold;
}

Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/Css/bootstrap5-theme.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Resources/Public/Scss/components/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ $footer-sections: map-merge(
padding-right: .5em;
}
}
.active a {
.active {
font-weight: bold;
}
.inactive {
Expand Down

0 comments on commit 7d3d7d6

Please sign in to comment.