Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Future-compat styled

Manav Rathi1999ce4aaa9c
diff --git a/web/packages/shared/components/Menu/EnteMenuItem.tsx b/web/packages/shared/components/Menu/EnteMenuItem.tsx
index e9f1452f9e..92e1b75edd 100644
--- a/web/packages/shared/components/Menu/EnteMenuItem.tsx
+++ b/web/packages/shared/components/Menu/EnteMenuItem.tsx
@@ -66,21 +66,24 @@ export const EnteMenuItem: React.FC<EnteMenuItemProps> = ({
disabled={disabled}
onClick={handleButtonClick}
disableRipple={variant == "toggle"}
- sx={(theme) => ({
- width: "100%",
- backgroundColor: (theme) =>
- variant !== "secondary" && variant !== "mini"
- ? theme.colors.fill.faint
- : "inherit",
- "&:hover": {
- backgroundColor: theme.colors.fill.faintPressed,
- },
- "& .MuiSvgIcon-root": {
- fontSize: "20px",
- },
- p: 0,
- borderRadius: "4px",
- })}
+ sx={[
+ (theme) => ({
+ width: "100%",
+ "&:hover": {
+ backgroundColor: theme.colors.fill.faintPressed,
+ },
+ "& .MuiSvgIcon-root": {
+ fontSize: "20px",
+ },
+ p: 0,
+ borderRadius: "4px",
+ }),
+ variant !== "secondary" &&
+ variant !== "mini" &&
+ ((theme) => ({
+ backgroundColor: theme.colors.fill.faint,
+ })),
+ ]}
>
<SpaceBetweenFlex sx={{ pl: "16px", pr: "12px" }}>
<VerticallyCenteredFlex sx={{ py: "14px" }} gap={"10px"}>