Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 5d79608

Browse files
committed
fix: styles related to the HDS update, as per Oiva's observations
1 parent e33ac41 commit 5d79608

3 files changed

Lines changed: 13 additions & 7 deletions

File tree

apps/admin-ui/src/component/Navigation.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,11 @@ const BackgroundHeader = styled(Header)`
8282
}
8383
#hds-mobile-menu {
8484
#user-menu * {
85-
color: var(--header-color);
85+
color: var(--header-color) !important;
8686
box-sizing: border-box;
87+
button {
88+
padding-inline: var(--spacing-s);
89+
}
8790
}
8891
ul > li {
8992
> span {
@@ -93,6 +96,9 @@ const BackgroundHeader = styled(Header)`
9396
width: 100%;
9497
font-size: var(--fontsize-body-xl);
9598
}
99+
.active {
100+
font-weight: bold;
101+
}
96102
}
97103
98104
/* hide the big link to frontpage which HDS adds by default */
@@ -114,7 +120,7 @@ const ActionBar = styled(Header.ActionBar)`
114120

115121
const NavigationMenuWrapper = styled.div`
116122
span:has(.active) {
117-
font-weight: bold;
123+
font-weight: bold !important;
118124
119125
/* using box-shadow for a bottom border inside of the element, without affecting text positioning */
120126
box-shadow: 0 -4px 0 0 var(--color-black) inset;

apps/ui/components/common/Navigation.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const Wrapper = styled.div`
4545
[class*="module_headerNavigationMenu__"] ul {
4646
width: 100%;
4747
margin: 0 auto;
48+
padding-inline: 0;
4849
max-width: var(--container-width-xl);
4950
}
5051
@@ -95,6 +96,9 @@ const Wrapper = styled.div`
9596
display: none;
9697
}
9798
}
99+
.active {
100+
font-weight: bold;
101+
}
98102
}
99103
`;
100104

apps/ui/pages/reservations/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ const Heading = styled.div`
3939
margin-bottom: var(--spacing-layout-l);
4040
`;
4141

42-
const StyledTabList = styled(TabList).attrs({
43-
style: {
44-
"--tablist-border-color": "white",
45-
} as React.CSSProperties,
46-
})`
42+
const StyledTabList = styled(TabList)`
4743
ul {
4844
width: 100% !important;
4945
position: relative;

0 commit comments

Comments
 (0)