fix: dark mode autofill contrast on auth inputs
Browser autofill forces a light background on inputs, making white text invisible in dark mode. Added -webkit-autofill overrides in globals.css and switched Input from bg-transparent to bg-background with explicit text-foreground. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -39,6 +39,16 @@
|
||||
body {
|
||||
@apply bg-background text-foreground antialiased font-sans;
|
||||
}
|
||||
/* Fix autofill contrast in dark mode — Chrome/Safari force a light bg on autofilled inputs */
|
||||
input:-webkit-autofill,
|
||||
input:-webkit-autofill:hover,
|
||||
input:-webkit-autofill:focus,
|
||||
input:-webkit-autofill:active {
|
||||
-webkit-text-fill-color: var(--color-foreground) !important;
|
||||
-webkit-box-shadow: 0 0 0 1000px var(--color-background) inset !important;
|
||||
box-shadow: 0 0 0 1000px var(--color-background) inset !important;
|
||||
transition: background-color 5000s ease-in-out 0s;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes shimmer {
|
||||
|
||||
Reference in New Issue
Block a user