Skip to content

Commit

Permalink
[B2BP-723] - Update MegaHeader UI (#344)
Browse files Browse the repository at this point in the history
* commit ui fix

* commit changeset
  • Loading branch information
Meolocious authored Jul 9, 2024
1 parent bdc6f4a commit 49f0c28
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .changeset/smart-elephants-rush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"nextjs-website": minor
---

Fix submenu jiggling links effect while hovering
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,18 @@ export const Nav = styled('ul')({
},
'& .menuSecondaryItem:hover .arrowIcon': {
visibility: 'visible',
opacity: 100,
},
'& .menuSecondaryItem.active': {
fontWeight: 600,
},
'& .menuSecondaryItem.active .arrowIcon': {
display: 'none',
visibility: 'visible',
opacity: 0,
},
'& .arrowIcon': {
visibility: 'hidden',
visibility: 'visible',
opacity: 0,
marginLeft: 5,
color: '#0B3EE3',
verticalAlign: 'middle',
Expand Down Expand Up @@ -110,23 +113,20 @@ export const Dropdown = styled(Box)({
color: '#555C70',
display: 'flex',
alignItems: 'center',
whiteSpace: 'nowrap',
whiteSpace: 'nowrap',
letterSpacing: 'normal',
},
'& a:hover': {
'& a:hover, & a.active': {
fontWeight: 600,
color: '#555C70',
letterSpacing: '-0.0090em',
},
'& a:hover .arrowIcon': {
'& a:hover .arrowIcon, & a.active .arrowIcon': {
visibility: 'visible',
},
'& a.active': {
fontWeight: 600,
},
'& a.active .arrowIcon': {
display: 'none',
opacity: 1,
},
'& .arrowIcon': {
visibility: 'hidden',
visibility: 'visible',
opacity: 0,
marginLeft: 5,
color: '#0B3EE3',
verticalAlign: 'middle',
Expand Down Expand Up @@ -199,15 +199,18 @@ export const MobileMenu = styled(Box)({
},
'& a:hover .arrowIcon': {
visibility: 'visible',
opacity: 100,
},
'& a.active': {
fontWeight: 600,
},
'& a.active .arrowIcon': {
display: 'none',
visibility: 'visible',
opacity: 0,
},
'& .arrowIcon': {
visibility: 'hidden',
visibility: 'visible',
opacity: 0,
marginLeft: 5,
color: '#0B3EE3',
verticalAlign: 'middle',
Expand Down

0 comments on commit 49f0c28

Please sign in to comment.