Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix close button color on download failure notification

Manav Rathi8ff8981b7696
diff --git a/web/packages/base/components/utils/mui-theme.d.ts b/web/packages/base/components/utils/mui-theme.d.ts
index faeef7901c..1cdcdef9e2 100644
--- a/web/packages/base/components/utils/mui-theme.d.ts
+++ b/web/packages/base/components/utils/mui-theme.d.ts
@@ -186,7 +186,6 @@ declare module "@mui/material/Button" {
success: false;
info: false;
warning: false;
- inherit: false;
// Add our custom palette colors.
accent: true;
critical: true;
@@ -200,7 +199,6 @@ declare module "@mui/material/IconButton" {
success: false;
info: false;
warning: false;
- inherit: false;
}
}
diff --git a/web/packages/new/photos/components/Notification.tsx b/web/packages/new/photos/components/Notification.tsx
index 6e304f5d68..5b59331474 100644
--- a/web/packages/new/photos/components/Notification.tsx
+++ b/web/packages/new/photos/components/Notification.tsx
@@ -223,6 +223,9 @@ export const Notification: React.FC<NotificationProps> = ({
// Buttons cannot be nested in buttons, so we use a div
// here instead.
component="div"
+ // Inherit the color of the parent button instead of
+ // using the IconButton defaults.
+ color="inherit"
onClick={handleClose}
sx={{ bgcolor: "fill.faint" }}
>