Skip to content

Commit f06a21d

Browse files
authored
fix: mainnavigation placement in header w/o metanavigation (#496)
fix: mainnavigation placement in header w/o metanavigation #489
1 parent 0bad5b9 commit f06a21d

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

source/_patterns/02-components/mainnavigation/mainnavigation.scss

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
order: 1;
1111
}
1212

13+
// Header Components positioning, :has non-supporting browsers fallback
14+
@supports not selector(:has(db)) {
15+
margin: auto;
16+
}
17+
1318
// The links shouldn't get an underline as text-decoration
1419
.elm-link {
1520
// We need to reset the general border-radius here

source/_patterns/03-areas/00-header/header.scss

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@
1515
padding-right: to-rem($pxValue: 16);
1616

1717
// We'll need to keep this for legacy reasons, to position the navigation even within a metanavigation included in header
18-
&::after {
19-
content: "";
18+
&:not(:has(.rea-meta)) {
19+
&::after {
20+
content: "";
21+
display: inline-block;
22+
order: 3;
23+
}
2024
}
2125

2226
.elm-link {

0 commit comments

Comments
 (0)