From b7a88e1e1a90b72e94970f4321c4ff4d757b0c0f Mon Sep 17 00:00:00 2001 From: Luke Walczak Date: Fri, 12 Jan 2024 22:28:59 +0100 Subject: [PATCH] fix: correct affix pressable container styles (#4274) --- src/components/TextInput/Adornment/TextInputAffix.tsx | 1 + .../__tests__/__snapshots__/TextInput.test.tsx.snap | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/src/components/TextInput/Adornment/TextInputAffix.tsx b/src/components/TextInput/Adornment/TextInputAffix.tsx index 8688151ed8..fe6e3daa65 100644 --- a/src/components/TextInput/Adornment/TextInputAffix.tsx +++ b/src/components/TextInput/Adornment/TextInputAffix.tsx @@ -186,6 +186,7 @@ const TextInputAffix = ({ onPress={onPress} accessibilityRole="button" accessibilityLabel={accessibilityLabel} + style={styles.container} > {affix} diff --git a/src/components/__tests__/__snapshots__/TextInput.test.tsx.snap b/src/components/__tests__/__snapshots__/TextInput.test.tsx.snap index ca1eba8a82..17d37db5db 100644 --- a/src/components/__tests__/__snapshots__/TextInput.test.tsx.snap +++ b/src/components/__tests__/__snapshots__/TextInput.test.tsx.snap @@ -231,6 +231,13 @@ exports[`call onPress when affix adornment pressed 1`] = ` onResponderTerminate={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} + style={ + { + "alignItems": "center", + "justifyContent": "center", + "position": "absolute", + } + } >