From fbbffe6cfd319cc36f696c0d625a3b17529c8f33 Mon Sep 17 00:00:00 2001 From: Luke Walczak Date: Fri, 12 Jan 2024 22:21:26 +0100 Subject: [PATCH] fix: correct affix pressable container styles --- 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", + } + } >