diff --git a/app/components/ContextMenu/MenuItem.tsx b/app/components/ContextMenu/MenuItem.tsx index 16f44dca4..89538ed61 100644 --- a/app/components/ContextMenu/MenuItem.tsx +++ b/app/components/ContextMenu/MenuItem.tsx @@ -16,7 +16,7 @@ type Props = { as?: string | React.ComponentType; hide?: () => void; level?: number; - icon?: React.ReactNode; + icon?: React.ReactElement; }; const MenuItem = ({ @@ -73,7 +73,11 @@ const MenuItem = ({   )} - {icon && {icon}} + {icon && ( + + {React.cloneElement(icon, { color: "currentColor" })} + + )} {children} )} diff --git a/app/components/MenuIconWrapper.ts b/app/components/MenuIconWrapper.ts index a67cfb839..761cf833a 100644 --- a/app/components/MenuIconWrapper.ts +++ b/app/components/MenuIconWrapper.ts @@ -5,6 +5,7 @@ const MenuIconWrapper = styled.span` height: 24px; margin-right: 6px; margin-left: -4px; + color: ${({ theme }) => theme.textSecondary}; `; export default MenuIconWrapper;