Skip to content

Commit 4d05ae0

Browse files
committed
fix styles
1 parent a24e114 commit 4d05ae0

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

src/components/SideNavMobile.tsx

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,24 @@ const NavLink = ({ item, path, toggle }: NavLinkProps) => {
9292
</SideNavLink>
9393
)}
9494
{!item.href && (
95-
<div className="w-full cursor-pointer" onClick={() => setIsOpen(!isOpen)}>
95+
<div
96+
className="w-full cursor-pointer"
97+
onClick={() => setIsOpen(!isOpen)}
98+
>
9699
{t(item.id)}
97100
</div>
98101
)}
99-
<motion.div className="cursor-pointer flex"
102+
<motion.div
103+
className="flex cursor-pointer"
100104
onClick={() => setIsOpen(!isOpen)}
101105
variants={dropdownIconContainerVariant}
102106
animate={isOpen ? "open" : "closed"}
103107
>
104-
<MdChevronRight className="h-6 w-6" color="secondary" />
108+
<MdChevronRight className="h-6 w-6 text-body-medium" />
105109
</motion.div>
106110
</LinkContainer>
107-
<motion.div className="ps-4 text-sm font-normal leading-relaxed"
111+
<motion.div
112+
className="ps-4 text-sm font-normal leading-relaxed"
108113
key={item.id}
109114
animate={isOpen ? "open" : "closed"}
110115
variants={innerLinksVariants}
@@ -143,26 +148,26 @@ const SideNavMobile = ({ path }: SideNavMobileProps) => {
143148
getPageTitleId(path + "/", docLinks) || ("Change page" as TranslationKey)
144149

145150
return (
146-
<div className="sticky z-2 bg-[ednBackground] h-auto w-full top-[75px] lg:hidden"
147-
148-
>
151+
<div className="sticky top-[75px] z-sticky h-auto w-full bg-background-highlight lg:hidden">
149152
<motion.div>
150153
<Center
151-
className="box-border cursor-pointer border-b border-b-current bg-[ednBackground] px-8 py-4 font-medium text-[primary.base]"
154+
className="box-border cursor-pointer border-b bg-background-highlight px-8 py-4 font-medium text-primary"
152155
onClick={() => setIsOpen(!isOpen)}
153156
>
154-
<div className="me-2">{t(pageTitleId)}</div>
155-
<motion.div className="cursor-pointer flex"
157+
<div>{t(pageTitleId)}</div>
158+
<motion.div
159+
className="flex cursor-pointer"
156160
variants={dropdownIconContainerVariant}
157161
animate={isOpen ? "open" : "closed"}
158162
>
159-
<MdChevronRight className="h-6 w-6" color="secondary" />
163+
<MdChevronRight className="h-6 w-6 text-body-medium" />
160164
</motion.div>
161165
</Center>
162166
</motion.div>
163167
<AnimatePresence>
164168
{isOpen && (
165-
<motion.nav className="h-auto max-h-[calc(100vh - 139px)] overflow-x-hidden overflow-y-scroll border-b border-border p-2"
169+
<motion.nav
170+
className="max-h-[calc(100vh - 139px)] h-auto overflow-x-hidden overflow-y-scroll border-b p-2"
166171
key="nav"
167172
initial={{ opacity: 0 }}
168173
animate={{

0 commit comments

Comments
 (0)