From 5c31859f7bb753b07752e2b8faf2248561c46c54 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 19 Jun 2024 23:42:12 +0100 Subject: [PATCH] fix for autofill covering border (#4573) --- src/components/forms/TextField.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/forms/TextField.tsx b/src/components/forms/TextField.tsx index 73a660ea..f7a827b4 100644 --- a/src/components/forms/TextField.tsx +++ b/src/components/forms/TextField.tsx @@ -196,6 +196,13 @@ export function createInput(Component: typeof TextInput) { textAlignVertical: rest.multiline ? 'top' : undefined, minHeight: rest.multiline ? 80 : undefined, }, + // fix for autofill styles covering border + web({ + paddingTop: 12, + paddingBottom: 12, + marginTop: 2, + marginBottom: 2, + }), android({ paddingBottom: 16, }),