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

Commit 17a6e1a

Browse files
committed
fix: admin-ui mobile menu styling
- Admin menu button colour is now white - The mobile menu items fit the screen (== the number in Varaustoiveet) - doesn’t underline the above mentioned number on hover
1 parent b269446 commit 17a6e1a

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,27 @@ const BackgroundHeader = styled(Header)`
3838
--notification-bubble-background-color: var(
3939
--tilavaraus-admin-handling-count-color
4040
);
41+
[class^="HeaderActionBarItem-module_container"] {
42+
> button span {
43+
color: white !important;
44+
svg {
45+
color: white;
46+
}
47+
}
48+
}
49+
50+
/* retain text-decoration: underline on the plain text in navigation items, but disable it in the notificationBubble */
51+
[class^="HeaderNavigationMenu-module_headerNavigationMenuLinkContent__"]:hover {
52+
a {
53+
text-decoration: none;
54+
span {
55+
text-decoration: underline;
56+
}
57+
[class^="HeaderActionBarSubItem-module_notificationBubble__"] {
58+
text-decoration: none;
59+
}
60+
}
61+
}
4162
#user-menu-dropdown {
4263
color: black;
4364
button,
@@ -66,6 +87,7 @@ const BackgroundHeader = styled(Header)`
6687
}
6788
ul > li {
6889
> span {
90+
box-sizing: border-box;
6991
padding: var(--spacing-s);
7092
li {
7193
width: 100%;

0 commit comments

Comments
 (0)