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 committed Jun 6, 2023
1 parent 4501c2b commit 4e64388
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 @@ -15470,7 +15470,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 @@ -15470,7 +15470,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 @@ -172,7 +172,7 @@ $footer-sections: map-merge(
padding-right: .5em;
}
}
.active a {
.active {
font-weight: bold;
}
.inactive {
Expand Down

0 comments on commit 4e64388

Please sign in to comment.