From 4f70893ddbd7d4dccd6204825bb9ae2f33da2435 Mon Sep 17 00:00:00 2001 From: lukewalczak Date: Fri, 5 Nov 2021 13:49:02 +0100 Subject: [PATCH] fix: correct long label in outlined text input --- example/src/Examples/TextInputExample.tsx | 10 ++++++++++ example/utils/index.ts | 1 + src/components/TextInput/Label/LabelBackground.tsx | 5 ++++- .../__tests__/__snapshots__/TextInput.test.js.snap | 3 ++- 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/example/src/Examples/TextInputExample.tsx b/example/src/Examples/TextInputExample.tsx index e537f5832b..f49d47dcec 100644 --- a/example/src/Examples/TextInputExample.tsx +++ b/example/src/Examples/TextInputExample.tsx @@ -28,6 +28,7 @@ const initialState: State = { outlinedMultiline: '', outlinedTextArea: '', outlinedColors: '', + outlinedLongLabel: '', maxLengthName: '', flatTextSecureEntry: true, outlineTextSecureEntry: true, @@ -391,6 +392,15 @@ const TextInputExample = () => { outlineColor={pink400} activeOutlineColor={amber900} /> + + inputActionHandler('outlinedLongLabel', outlinedLongLabel) + } + /> @@ -263,6 +263,7 @@ exports[`correctly applies height to multiline Outline TextInput 1`] = ` "fontSize": 16, "fontWeight": undefined, "left": 18, + "maxWidth": -28, "opacity": 1, "paddingHorizontal": 0, "position": "absolute",