fix(client): dark-mode text-field polish

- MuiOutlinedInput hover override: was inheriting MUI's default
  white outline in dark mode (too bright). Now uses an alpha-23%
  white in dark and text.primary in light.
- TextInput: -webkit-autofill now repaints the input bg with
  background.paper (instead of Chrome's harsh blue/yellow autofill
  highlight), text in text.primary, with the standard 5000s-transition
  trick to suppress the brief flash. Works in both modes.
This commit is contained in:
gorkem-bwl committed 2026-04-25 23:28:32 -04:00
1 parent 7d91d9e28b
commit 59846a041f
2 files changed
+16 -2

No files matched your search

+8 -2
View File
@@ -120,11 +120,17 @@ export const theme = (mode: string, palette: any) =>
MuiOutlinedInput: {
styleOverrides: {
root: {
root: ({ theme }) => ({
"&:hover .MuiOutlinedInput-notchedOutline": {
borderColor:
theme.palette.mode === "dark"
? "rgba(255, 255, 255, 0.23)"
: theme.palette.text.primary,
},
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
borderColor: palette.primary.main,
},
},
}),
},
},