From 766bee0e0c670bf364a85ad2063c34dcded1e7ce Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Fri, 28 Oct 2022 19:28:34 +0800 Subject: [PATCH] [ui] make disabled color more consistent --- .../components/shared/CompaniesTypeahead.tsx | 1 + apps/storybook/stories/text-area.stories.tsx | 17 ++++-- apps/storybook/stories/text-input.stories.tsx | 8 ++- apps/storybook/stories/typeahead.stories.tsx | 54 +++++++++++++++++++ .../ui/src/CheckboxInput/CheckboxInput.tsx | 2 +- packages/ui/src/Select/Select.tsx | 3 +- packages/ui/src/TextArea/TextArea.tsx | 3 +- packages/ui/src/TextInput/TextInput.tsx | 5 +- packages/ui/src/Typeahead/Typeahead.tsx | 43 +++++++++++++-- 9 files changed, 119 insertions(+), 17 deletions(-) diff --git a/apps/portal/src/components/shared/CompaniesTypeahead.tsx b/apps/portal/src/components/shared/CompaniesTypeahead.tsx index 23d9c276..7a48bd10 100644 --- a/apps/portal/src/components/shared/CompaniesTypeahead.tsx +++ b/apps/portal/src/components/shared/CompaniesTypeahead.tsx @@ -6,6 +6,7 @@ import { trpc } from '~/utils/trpc'; type Props = Readonly<{ disabled?: boolean; + errorMessage?: string; isLabelHidden?: boolean; onSelect: (option: TypeaheadOption) => void; placeHolder?: string; diff --git a/apps/storybook/stories/text-area.stories.tsx b/apps/storybook/stories/text-area.stories.tsx index 14d4acdb..304d267f 100644 --- a/apps/storybook/stories/text-area.stories.tsx +++ b/apps/storybook/stories/text-area.stories.tsx @@ -74,11 +74,18 @@ export function HiddenLabel() { export function Disabled() { return ( -