From 894a039a3e8f48eb2fc1c2ee7566923d76535adb Mon Sep 17 00:00:00 2001 From: twwu Date: Fri, 10 Jan 2025 18:02:35 +0800 Subject: [PATCH] style: update UI components for improved consistency and accessibility --- .../components/title-description-input.tsx | 15 ++++++------ .../nodes/start/components/var-item.tsx | 24 +++++++++---------- .../nodes/start/components/var-list.tsx | 2 +- .../components/workflow/nodes/start/panel.tsx | 16 ++++++------- 4 files changed, 29 insertions(+), 28 deletions(-) diff --git a/web/app/components/workflow/nodes/_base/components/title-description-input.tsx b/web/app/components/workflow/nodes/_base/components/title-description-input.tsx index a5718ba2b6..45c3810af5 100644 --- a/web/app/components/workflow/nodes/_base/components/title-description-input.tsx +++ b/web/app/components/workflow/nodes/_base/components/title-description-input.tsx @@ -33,9 +33,10 @@ export const TitleInput = memo(({ value={localValue} onChange={e => setLocalValue(e.target.value)} className={` - grow mr-2 px-1 h-6 text-base text-gray-900 font-semibold rounded-lg border border-transparent appearance-none outline-none - hover:bg-gray-50 - focus:border-gray-300 focus:shadow-xs focus:bg-white caret-[#295EFF] + grow mr-2 px-1 h-6 system-xl-semibold text-text-primary rounded-lg border border-transparent appearance-none outline-none + placeholder:text-text-placeholder + bg-transparent hover:bg-state-base-hover + focus:border-components-input-border-active focus:shadow-xs shadow-shadow-shadow-3 focus:bg-components-input-active caret-[#295EFF] min-w-0 `} placeholder={t('workflow.common.addTitle') || ''} @@ -66,8 +67,8 @@ export const DescriptionInput = memo(({