Move sidebar toggle into the sidebar itself instead of overlaying document content (#5749)
This commit is contained in:
15
app/components/Sidebar/components/ToggleButton.tsx
Normal file
15
app/components/Sidebar/components/ToggleButton.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import styled from "styled-components";
|
||||
import { hover } from "~/styles";
|
||||
import SidebarButton from "./SidebarButton";
|
||||
|
||||
const ToggleButton = styled(SidebarButton)`
|
||||
opacity: 0;
|
||||
transition: opacity 100ms ease-in-out;
|
||||
|
||||
&:${hover},
|
||||
&:active {
|
||||
opacity: 1;
|
||||
}
|
||||
`;
|
||||
|
||||
export default ToggleButton;
|
||||
Reference in New Issue
Block a user