Skip to content

Commit f35d26c

Browse files
fix the styles.
1 parent 682b4b5 commit f35d26c

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/components/SideNav.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const innerLinksVariants = {
3535

3636
const LinkContainer = ({ children }: ChildOnlyProp) => {
3737
return (
38-
<HStack className="w-full justify-between py-2 pe-4 ps-8 hover:bg-[ednBackground]">
38+
<HStack className="w-full justify-between py-2 pe-4 ps-8 hover:bg-background-highlight">
3939
{children}
4040
</HStack>
4141
)
@@ -88,20 +88,24 @@ const NavLink = ({ item, path, isTopLevel }: NavLinkProps) => {
8888
</SideNavLink>
8989
)}
9090
{!item.href && (
91-
<div className="w-full cursor-pointer"onClick={() => setIsOpen(!isOpen)}>
91+
<div
92+
className="w-full cursor-pointer"
93+
onClick={() => setIsOpen(!isOpen)}
94+
>
9295
{t(item.id)}
9396
</div>
9497
)}
9598
<motion.div
96-
className="cursor-pointer flex"
99+
className="flex cursor-pointer"
97100
onClick={() => setIsOpen(!isOpen)}
98101
variants={dropdownIconContainerVariant}
99102
animate={isOpen ? "open" : "closed"}
100103
>
101-
<MdChevronRight className="h-6 w-6" color="secondary" />
104+
<MdChevronRight className="h-6 w-6 text-body-medium" />
102105
</motion.div>
103106
</LinkContainer>
104-
<motion.div className="ms-4 text-sm font-normal leading-relaxed"
107+
<motion.div
108+
className="ms-4 text-sm font-normal leading-relaxed"
105109
key={item.id}
106110
animate={isOpen ? "open" : "closed"}
107111
variants={innerLinksVariants}
@@ -137,7 +141,7 @@ const SideNav = ({ path }: SideNavProps) => {
137141

138142
return (
139143
<nav
140-
className="sticky top-[4.75rem] pt-8 pb-16 h-[calc(100vh - 80px)] w-[calc((100% - 1448px) / 2 + 256px)] min-w-256 overflow-y-auto transition-transform duration-200 ease bg-[background.base] shadow-[1px_0px_0px_rgba(0,0,0,0.1)] border-e border-e-border lg:block"
144+
className="h-[calc(100vh - 80px)] w-[calc((100% - 1448px) / 2 + 256px)] min-w-256 ease sticky top-[4.75rem] overflow-y-auto border-e border-e-border bg-background pb-16 pt-8 shadow-[1px_0px_0px_rgba(0,0,0,0.1)] transition-transform duration-200 lg:block"
141145
aria-label={t("common:nav-developers-docs")}
142146
>
143147
{docLinks.map((item, idx) => (

0 commit comments

Comments
 (0)