From 3021c5d8031b645c6cc86cb96ef0ded9e491f474 Mon Sep 17 00:00:00 2001 From: Nicko Winner-Arroyo Date: Tue, 2 Feb 2021 17:03:12 -0500 Subject: [PATCH 1/4] Make labels optional on text-like inputs For folks who may be using helix in non-standard ways, IE: applications with legacy field types. --- src/Search/index.js | 2 +- src/Select/index.js | 2 +- src/Text/index.js | 20 +++++++++++--------- src/TextArea/index.js | 20 +++++++++++--------- 4 files changed, 24 insertions(+), 20 deletions(-) diff --git a/src/Search/index.js b/src/Search/index.js index ad84518..6cb06c7 100644 --- a/src/Search/index.js +++ b/src/Search/index.js @@ -57,7 +57,7 @@ const Search = React.forwardRef( - {label && ( + {typeof label === 'undefined' && (