Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextInput in outline mode - browser autofill obscures outline #4404

Open
zactwidale opened this issue May 11, 2024 · 0 comments
Open

TextInput in outline mode - browser autofill obscures outline #4404

zactwidale opened this issue May 11, 2024 · 0 comments
Labels

Comments

@zactwidale
Copy link

Current behaviour

When using the TextInput in outline mode in a react native web build, the browser autocomplete provides a background color to indicate that it was autocompleted. This background obscures the bottom and right border outlines. It also doesn't autofill the areas used in by any left or right props components, such as icons. This is not ideal, but acceptable. Obscuring the outline is a very unprofessional look.

Expected behaviour

Primary expectation:
I expect the browser autofill background to be contained within the outline of the TextInput and not obscure it.
Secondary expectation:
I also expect it to completely fill the outline, not leaving a blank spot for the icons.

How to reproduce?

<TextInput
mode="outlined"
label="Email"
autoComplete="email"
left={<TextInput.Icon icon="email" />}
/>

View in browser (Chrome on Windows or Android, Edge on Windows have been tested)

Preview

TextInput problem

What have you tried so far?

Lots of time on Google

Your Environment

software version
android 12 (also tested on newer, but not sure of version)
react-native 0.74.1 (also 0.73.6)
react-native-paper ^5.12.3
node 20.9.0
npm or yarn 10.7.0
expo sdk ~51.0.2 (also ^50.0.1)
windows 24.0.6367.156
edge 124.0.2478.80
chrome 124.0.6367.156
@zactwidale zactwidale added the bug label May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant