Skip to content

Commit

Permalink
chore: fixes drag and drop in network list menu modal
Browse files Browse the repository at this point in the history
  • Loading branch information
georgewrmarshall committed Feb 19, 2025
1 parent 2abb96a commit a743d53
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ui/components/multichain/network-list-menu/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@
&__dialog {
height: 100vh;
max-height: 100%;
// Needed to ensure the drag and drop works. All other modals use a slide up animation with transform: translateY(0)
// https://github.com/MetaMask/metamask-extension/issues/30436
transform: unset;

// Custom animation for network menu modal that doesn't use transform: translateY(0) to ensure the drag and drop works
animation: network-menu-fade 400ms cubic-bezier(0.3, 0.8, 0.3, 1) forwards;
}
}

@keyframes network-menu-fade {
from {
opacity: 0;
}

to {
opacity: 1;
}
}

Expand Down

0 comments on commit a743d53

Please sign in to comment.