Skip to content

Commit a1f0575

Browse files
authored
Merge pull request #6643 from ARYANSHAH1567/aryanshah/fix_cheveron
Fixed the positioning and click area of cheveron
2 parents a557d1f + 901fea6 commit a1f0575

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/components/SistentNavigation/index.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { HiOutlineChevronLeft } from "@react-icons/all-files/hi/HiOutlineChevron
33
import { Link } from "gatsby";
44
import { IoMdClose } from "@react-icons/all-files/io/IoMdClose";
55
import { IoIosArrowDropdownCircle } from "@react-icons/all-files/io/IoIosArrowDropdownCircle";
6+
import { IoIosArrowForward } from "@react-icons/all-files/io/IoIosArrowForward";
67
import { componentsData } from "../../sections/Projects/Sistent/components/content";
78

89
import TOCWrapper from "./toc.style";
@@ -35,14 +36,14 @@ const TOC = () => {
3536
</Link>
3637
<div className="toc-toggle-btn">
3738
{expand ? (
38-
<IoMdClose
39+
<IoIosArrowDown
3940
className="toc-menu-icon"
4041
onClick={function () {
4142
setExpand(!expand);
4243
}}
4344
/>
4445
) : (
45-
<IoIosArrowDropdownCircle
46+
<IoIosArrowForward
4647
className="toc-menu-icon"
4748
onClick={function () {
4849
setExpand(!expand);
@@ -69,7 +70,10 @@ const TOC = () => {
6970
onClick={() => setExpandIdentity((prev) => !prev)}
7071
>
7172
Identity
72-
{expandIdenity ? <IoIosArrowUp /> : <IoIosArrowDown />}
73+
{expandIdenity ?
74+
<IoIosArrowDown style={{ zIndex: 2 }} /> :
75+
<IoIosArrowForward style={{ zIndex: 2 }} />
76+
}
7377
</li>
7478
{expandIdenity && (
7579
<div className="identity-sublinks">
@@ -129,7 +133,10 @@ const TOC = () => {
129133
onClick={() => setExpandComponent((prev) => !prev)}
130134
>
131135
Components
132-
{expandComponent ? <IoIosArrowUp /> : <IoIosArrowDown />}
136+
{expandComponent ?
137+
<IoIosArrowDown style={{ zIndex: 2 }} /> :
138+
<IoIosArrowForward style={{ zIndex: 2 }} />
139+
}
133140
</li>
134141
{expandComponent && (
135142
<div className="components-sublinks">

src/components/SistentNavigation/toc.style.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ const TOCWrapper = styled.div`
104104
width: auto;
105105
.toc-toggle-btn {
106106
display: inline-block;
107+
z-index: 2;
107108
}
108109
.go-back {
109110
margin-left: 0;

0 commit comments

Comments
 (0)