From 94f232f67c97b780cc9927281e34486ea267b328 Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Mon, 24 Oct 2022 09:20:27 +0800 Subject: [PATCH] [ui] change to text-sm for some elements --- packages/ui/src/Select/Select.tsx | 2 +- packages/ui/src/TextArea/TextArea.tsx | 2 +- packages/ui/src/TextInput/TextInput.tsx | 4 ++-- packages/ui/src/Typeahead/Typeahead.tsx | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/ui/src/Select/Select.tsx b/packages/ui/src/Select/Select.tsx index d23935a9..f13fbfc1 100644 --- a/packages/ui/src/Select/Select.tsx +++ b/packages/ui/src/Select/Select.tsx @@ -88,7 +88,7 @@ function Select( aria-label={isLabelHidden ? label : undefined} className={clsx( display === 'block' && 'block w-full', - 'rounded-md py-2 pl-3 pr-8 text-base focus:outline-none sm:text-sm', + 'rounded-md py-2 pl-3 pr-8 text-sm focus:outline-none', stateClasses[state], borderClasses[borderStyle], disabled && 'bg-slate-100', diff --git a/packages/ui/src/TextArea/TextArea.tsx b/packages/ui/src/TextArea/TextArea.tsx index deb87dd5..ea0abe49 100644 --- a/packages/ui/src/TextArea/TextArea.tsx +++ b/packages/ui/src/TextArea/TextArea.tsx @@ -108,7 +108,7 @@ function TextArea( aria-describedby={hasError ? errorId : undefined} aria-invalid={hasError ? true : undefined} className={clsx( - 'block w-full rounded-md sm:text-sm', + 'block w-full rounded-md text-sm', stateClasses[state].textArea, disabled && 'bg-slate-100', resizeClasses[resize], diff --git a/packages/ui/src/TextInput/TextInput.tsx b/packages/ui/src/TextInput/TextInput.tsx index 002c5770..4f67af6a 100644 --- a/packages/ui/src/TextInput/TextInput.tsx +++ b/packages/ui/src/TextInput/TextInput.tsx @@ -142,7 +142,7 @@ function TextInput(
@@ -178,7 +178,7 @@ function TextInput( aria-describedby={hasError ? errorId : undefined} aria-invalid={hasError ? true : undefined} className={clsx( - 'flex-1 border-none focus:outline-none focus:ring-0 sm:text-sm', + 'flex-1 border-none text-sm focus:outline-none focus:ring-0', inputClass, disabled && 'bg-transparent', )} diff --git a/packages/ui/src/Typeahead/Typeahead.tsx b/packages/ui/src/Typeahead/Typeahead.tsx index e84d03a3..047879a2 100644 --- a/packages/ui/src/Typeahead/Typeahead.tsx +++ b/packages/ui/src/Typeahead/Typeahead.tsx @@ -88,7 +88,7 @@ export default function Typeahead({ )}
-
+
- + {options.length === 0 && query !== '' ? (
{noResultsMessage}