fix: Page reloads in Firefox when clicking some menu items (#2060)

* fix: Some context menu items result in page reload in Firefox

closes #1877

* fix: Display of sidebar link actions on hover
This commit is contained in:
Tom Moor 2021-04-23 12:25:15 -07:00 committed by GitHub
parent eb6acdae20
commit 3b696cfa9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,6 +66,7 @@ function SidebarLink({
};
return (
<>
<Link
$isActiveDrop={isActiveDrop}
activeStyle={isActiveDrop ? activeDropStyle : activeStyle}
@ -80,8 +81,9 @@ function SidebarLink({
>
{icon && <IconWrapper>{icon}</IconWrapper>}
<Label>{label}</Label>
{menu && <Actions showActions={showActions}>{menu}</Actions>}
</Link>
{menu && <Actions showActions={showActions}>{menu}</Actions>}
</>
);
}
@ -109,6 +111,8 @@ const Actions = styled(EventBoundary)`
}
&:hover {
display: inline-flex;
svg {
opacity: 0.75;
}
@ -145,9 +149,8 @@ const Link = styled(NavLink)`
background: ${(props) => props.theme.black05};
}
&:hover,
&:active {
> ${Actions} {
&:hover + ${Actions},
&:active + ${Actions} {
display: inline-flex;
svg {