From 05bd281eede419db25d9f8c85d7eb71e463eecbf Mon Sep 17 00:00:00 2001 From: Farhanah Sheets Date: Mon, 29 Jan 2018 12:11:04 -0500 Subject: [PATCH] fix(input-label): extend asInput to allow label prop as element --- .../__snapshots__/Storyshots.test.js.snap | 101 +++++++++++++++++- src/InputText/InputText.stories.jsx | 7 ++ src/Modal/Modal.stories.jsx | 2 +- src/TextArea/TextArea.stories.jsx | 7 ++ src/asInput/asInput.test.jsx | 12 +++ src/asInput/index.jsx | 2 +- 6 files changed, 128 insertions(+), 3 deletions(-) diff --git a/.storybook/__snapshots__/Storyshots.test.js.snap b/.storybook/__snapshots__/Storyshots.test.js.snap index 053659088f..c6b9056f48 100644 --- a/.storybook/__snapshots__/Storyshots.test.js.snap +++ b/.storybook/__snapshots__/Storyshots.test.js.snap @@ -881,6 +881,54 @@ exports[`Storyshots InputText focus test 1`] = ` `; +exports[`Storyshots InputText label as element 1`] = ` +
+ + +
+ +
+
+`; + exports[`Storyshots InputText minimal usage 1`] = `
`; -exports[`Storyshots Modal modal with warning theme 1`] = ` +exports[`Storyshots Modal modal with warning variant 1`] = `
`; +exports[`Storyshots Textarea label as element 1`] = ` +
+ +