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