Skip to content

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

@JeffBaumgardt

Description

@JeffBaumgardt

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

Metadata

Assignees

No one assigned

    Labels

    ready to takeHelp wanted. Guidance available. There is a high chance the change will be acceptedscope: text fieldChanges related to the text field.waiting for 👍Waiting for upvotes. Open for community feedback and needs more interest to be worked on.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions