Skip to content

[TextField] Default Webkit autofill color does not use variables or palette #44665

Open
@JeffBaumgardt

Description

WebkitBoxShadow: theme.palette.mode === 'light' ? null : '0 0 0 100px #266798 inset',

Looking at this I was having issue with the color of the TextField when autofill was put in (Chrome). The color is hardcoded in and not referenced to any css var or theme.palette. I can of course override this with sx props on the slotProps.htmlInput or globally override in the theme.

It seems like a very odd choice to do a very solid dark blue when someone could have a completely different color theme than the default blue.

Search keywords:

Metadata

Assignees

Labels

component: text fieldThis is the name of the generic UI component, not the React module!package: material-uiSpecific to @mui/materialready to takeHelp wanted. Guidance available. There is a high chance the change will be acceptedwaiting for 👍Waiting for upvotes

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions