chore: Move collection sort control (#1762)

* feat: Move collection sort menu

* fix: Improve accessibility

* fix: Dedupe outline-icons (temporary until rme is next merged)
This commit is contained in:
Tom Moor
2021-01-02 19:11:13 -08:00
committed by GitHub
parent eda5adca2c
commit 611e9b97b3
9 changed files with 121 additions and 58 deletions

View File

@ -27,9 +27,7 @@ const DropdownMenuItem = ({
>
{selected !== undefined && (
<>
<CheckmarkIcon
color={selected === false ? "transparent" : undefined}
/>
{selected ? <CheckmarkIcon /> : <Spacer />}
&nbsp;
</>
)}
@ -38,6 +36,11 @@ const DropdownMenuItem = ({
);
};
const Spacer = styled.div`
width: 24px;
height: 24px;
`;
const MenuItem = styled.a`
display: flex;
margin: 0;