Commit e122b380 authored by Luke Schoen's avatar Luke Schoen
Browse files

review-fix: Add menu underlayer to prevent clicking other links when close menu

parent c65547aa
Pipeline #28305 passed with stage
in 3 minutes and 22 seconds
......@@ -61,7 +61,8 @@ class Tokens extends PureComponent {
}
return (
<div>
<div className='tokens'>
<div className={isMenuOpen ? 'popup-underlay' : ''} />
<MenuPopup
className='popup-menu-account'
context={menuNode}
......
.popup-underlay {
background: transparent;
bottom: 0;
height: 100%;
left: 0;
position: fixed;
right: 0;
top: 0;
width: 100%;
z-index: 1899; /* Under the menu popup */
}
.popup-menu-account {
/* Override SUI popup styles so popup does not appear above menu icon */
background: $white !important;
......
.tokens {
position: relative;
}
.token {
display: flex;
align-items: center;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment