Skip to content

Commit 5e09e23

Browse files
committed
feat(appmenu): add external button clickable area
1 parent c238ef7 commit 5e09e23

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/components/appMenu/CircularMenu/CircularMenuItem.module.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040
display: flex;
4141
}
4242

43+
.navLink {
44+
display: block;
45+
padding: 12px;
46+
position: inherit;
47+
margin: -12px;
48+
}
49+
4350
.external {
4451
display: block;
4552
position: absolute;

src/components/appMenu/CircularMenu/CircularMenuItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function CircularMenuItem({ item, onClick, selected }: Props) {
1919
<NavLink
2020
to={item.to}
2121
onClick={onClick}
22-
style={{ position: 'inherit' }}
22+
className={styles.navLink}
2323
{...(isExternal && { target: '_blank', rel: 'noreferrer noopener' })}
2424
>
2525
<img src={item.icon} className={styles.icon} alt="img" />

0 commit comments

Comments
 (0)