Skip to content

Commit

Permalink
fix: language selector border
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Feb 17, 2025
1 parent b1a9aab commit ff5fece
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/components/layout/Header/LanguageSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ const LanguageSelector = (props) => {
);

return config.settings.isMultilingual ? (
<UncontrolledDropdown nav tag="div" inNavbar>
<UncontrolledDropdown
nav
tag="div"
inNavbar
className="is-language-selector"
>
<DropdownToggle aria-haspopup caret inNavbar nav role="button">
{languagesISO392[currentLang]}
<Icon
Expand Down
10 changes: 9 additions & 1 deletion src/theme/io-sanita/components/layout/_tertiaryMenu.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
$tertiary-menu-border: 1px solid #fff;

.tertiary-menu {
li.nav-item {
display: flex;
align-items: center;
&:not(:last-of-type) {
border-right: 1px solid #fff;
border-right: $tertiary-menu-border;
}

a {
Expand All @@ -18,4 +20,10 @@
}
}
}

&:has(+ .is-language-selector) {
li.nav-item:last-of-type {
border-right: $tertiary-menu-border;
}
}
}

0 comments on commit ff5fece

Please sign in to comment.