fix(client): replace hardcoded blue accents in tooltip and toast
- Tooltip backgrounds now pull from the theme's grey palette instead of a hand-rolled blue gradient (visible bug in dark mode) - Toast progress bars use theme.palette.primary.main so they match the rest of the brand
This commit is contained in:
1 parent
4fd9b2ecf5
commit
82ad40ac82
2 files changed
+7
-8
No files matched your search
+2
-2
@@ -43,8 +43,8 @@ function App() {
|
|||||||
theme={mode}
|
theme={mode}
|
||||||
style={
|
style={
|
||||||
{
|
{
|
||||||
"--toastify-color-progress-light": "#7C8BA1",
|
"--toastify-color-progress-light": theme.palette.primary.main,
|
||||||
"--toastify-color-progress-dark": "#7C8BA1",
|
"--toastify-color-progress-dark": theme.palette.primary.main,
|
||||||
} as CSSProperties
|
} as CSSProperties
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -16,16 +16,15 @@ export const Tooltip = ({ placement = "top", ...props }: StyledTooltipProps) =>
|
|||||||
slotProps={{
|
slotProps={{
|
||||||
tooltip: {
|
tooltip: {
|
||||||
sx: {
|
sx: {
|
||||||
background:
|
backgroundColor:
|
||||||
theme.palette.mode === "dark"
|
theme.palette.mode === "dark"
|
||||||
? "linear-gradient(135deg, #1a1a2e 0%, #16213e 100%)"
|
? theme.palette.grey[900]
|
||||||
: "linear-gradient(135deg, #2c3e50 0%, #1a252f 100%)",
|
: theme.palette.grey[800],
|
||||||
backgroundColor: "transparent",
|
color: theme.palette.common.white,
|
||||||
color: "#ffffff",
|
|
||||||
fontSize: "13px",
|
fontSize: "13px",
|
||||||
padding: `${theme.spacing(4)} ${theme.spacing(5)}`,
|
padding: `${theme.spacing(4)} ${theme.spacing(5)}`,
|
||||||
borderRadius: `${theme.shape.borderRadius}px`,
|
borderRadius: `${theme.shape.borderRadius}px`,
|
||||||
boxShadow: "0 8px 24px rgba(0, 0, 0, 0.4)",
|
boxShadow: theme.shadows[6],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in new issue
Block a user