Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(dify-ui): switch control state colors without a fade (#43978)

yyh0a171370358a
diff --git a/packages/dify-ui/src/autocomplete/index.tsx b/packages/dify-ui/src/autocomplete/index.tsx
index f213bacbe28..22cc6aa94b9 100644
--- a/packages/dify-ui/src/autocomplete/index.tsx
+++ b/packages/dify-ui/src/autocomplete/index.tsx
@@ -171,13 +171,12 @@ function AutocompleteInput({
const autocompleteControlVariants = cva(
[
- 'flex shrink-0 touch-manipulation items-center justify-center rounded-md text-text-tertiary transition-colors',
+ 'flex shrink-0 touch-manipulation items-center justify-center rounded-md text-text-tertiary',
'hover:bg-components-input-bg-hover hover:text-text-secondary focus-visible:bg-components-input-bg-hover focus-visible:text-text-secondary',
insetFocusRingClassName,
'disabled:cursor-not-allowed disabled:hover:bg-transparent disabled:hover:text-text-tertiary disabled:focus-visible:bg-transparent',
'group-data-disabled/autocomplete:cursor-not-allowed group-data-disabled/autocomplete:hover:bg-transparent group-data-disabled/autocomplete:focus-visible:bg-transparent',
'group-data-readonly/autocomplete:hidden',
- 'motion-reduce:transition-none',
],
{
variants: {
diff --git a/packages/dify-ui/src/checkbox/index.tsx b/packages/dify-ui/src/checkbox/index.tsx
index 1fcaec57aea..0c42a83b277 100644
--- a/packages/dify-ui/src/checkbox/index.tsx
+++ b/packages/dify-ui/src/checkbox/index.tsx
@@ -7,7 +7,7 @@ import { checkedControlFocusClassName } from '../internal/focus'
import { resolveClassName } from '../internal/resolve-class-name'
const checkboxRootClassName = cn(
- 'inline-flex size-4 shrink-0 touch-manipulation items-center justify-center rounded-sm shadow-xs shadow-shadow-shadow-3 transition-colors motion-reduce:transition-none',
+ 'inline-flex size-4 shrink-0 touch-manipulation items-center justify-center rounded-sm shadow-xs shadow-shadow-shadow-3',
'border border-components-checkbox-border bg-components-checkbox-bg-unchecked text-components-checkbox-icon',
'hover:border-components-checkbox-border-hover hover:bg-components-checkbox-bg-unchecked-hover',
checkedControlFocusClassName,
diff --git a/packages/dify-ui/src/combobox/index.tsx b/packages/dify-ui/src/combobox/index.tsx
index be359576f1f..6f88a3fae5e 100644
--- a/packages/dify-ui/src/combobox/index.tsx
+++ b/packages/dify-ui/src/combobox/index.tsx
@@ -196,13 +196,12 @@ function ComboboxInput({
const comboboxControlVariants = cva(
[
- 'flex shrink-0 touch-manipulation items-center justify-center rounded-md text-text-tertiary transition-colors',
+ 'flex shrink-0 touch-manipulation items-center justify-center rounded-md text-text-tertiary',
'hover:bg-components-input-bg-hover hover:text-text-secondary focus-visible:bg-components-input-bg-hover focus-visible:text-text-secondary',
insetFocusRingClassName,
'disabled:cursor-not-allowed disabled:hover:bg-transparent disabled:hover:text-text-tertiary disabled:focus-visible:bg-transparent',
'group-data-disabled/combobox:cursor-not-allowed group-data-disabled/combobox:hover:bg-transparent group-data-disabled/combobox:focus-visible:bg-transparent',
'group-data-readonly/combobox:hidden',
- 'motion-reduce:transition-none',
],
{
variants: {
diff --git a/packages/dify-ui/src/input-group/index.tsx b/packages/dify-ui/src/input-group/index.tsx
index a6e9276b812..a87839a46d3 100644
--- a/packages/dify-ui/src/input-group/index.tsx
+++ b/packages/dify-ui/src/input-group/index.tsx
@@ -20,16 +20,15 @@ function InputGroup({ className, onMouseDown, ...props }: InputGroupProps) {
{...props}
className={cn(
[
- 'flex min-h-8 w-full min-w-0 items-center rounded-lg border border-transparent bg-components-input-bg-normal transition-[background-color,border-color]',
+ 'flex min-h-8 w-full min-w-0 items-center rounded-lg border border-transparent bg-components-input-bg-normal',
'has-[>input:enabled:not(:focus)]:not-has-[>input:is([readonly],[data-invalid])]:hover:border-components-input-border-hover has-[>input:enabled:not(:focus)]:not-has-[>input:is([readonly],[data-invalid])]:hover:bg-components-input-bg-hover',
- 'has-[>input:focus]:ring-2 has-[>input:focus]:ring-state-accent-solid has-[>input:focus]:transition-none has-[>input:focus]:not-has-[>input:is([readonly],[data-invalid])]:bg-components-input-bg-active',
+ 'has-[>input:focus]:ring-2 has-[>input:focus]:ring-state-accent-solid has-[>input:focus]:not-has-[>input:is([readonly],[data-invalid])]:bg-components-input-bg-active',
'has-[>input:enabled[data-invalid]]:border-components-input-border-destructive has-[>input:enabled[data-invalid]]:bg-components-input-bg-destructive',
'has-[>input:disabled]:cursor-not-allowed has-[>input:disabled]:border-transparent has-[>input:disabled]:bg-components-input-bg-disabled has-[>input:disabled]:text-components-input-text-filled-disabled',
'has-[>input:disabled]:*:data-align:cursor-not-allowed has-[>input:disabled]:*:data-align:text-components-input-text-filled-disabled',
'has-[>input:enabled[readonly]]:cursor-default has-[>input:enabled[readonly]]:*:data-align:cursor-default',
'has-[>[data-align=inline-start]]:[&>input]:ps-0',
'has-[>[data-align=inline-end]]:[&>input]:pe-0',
- 'motion-reduce:transition-none',
],
className,
)}
diff --git a/packages/dify-ui/src/input/index.stories.tsx b/packages/dify-ui/src/input/index.stories.tsx
index 59f26858f7d..69486ae5b2e 100644
--- a/packages/dify-ui/src/input/index.stories.tsx
+++ b/packages/dify-ui/src/input/index.stories.tsx
@@ -25,20 +25,10 @@ type Story = StoryObj<typeof meta>
export const Basic: Story = {
render: () => (
- <div className="w-80">
- <label
- htmlFor="workspace-name"
- className="mb-1 block w-fit py-1 system-sm-medium text-text-secondary"
- >
- Workspace name
- </label>
- <Input
- id="workspace-name"
- name="workspaceName"
- autoComplete="organization"
- placeholder="e.g. Acme workspace…"
- />
- </div>
+ <Field name="workspaceName" className="w-80">
+ <FieldLabel>Workspace name</FieldLabel>
+ <Input autoComplete="organization" placeholder="e.g. Acme workspace…" />
+ </Field>
),
}
diff --git a/packages/dify-ui/src/internal/form-control.ts b/packages/dify-ui/src/internal/form-control.ts
index b9eb42a1367..936226056a0 100644
--- a/packages/dify-ui/src/internal/form-control.ts
+++ b/packages/dify-ui/src/internal/form-control.ts
@@ -7,28 +7,26 @@ export const formLabelClassName =
// either, so that state uses the pseudo-class, limited to enabled controls because `:read-only` also
// matches a disabled one.
export const textControlClassName = [
- 'w-full appearance-none border border-transparent bg-components-input-bg-normal text-components-input-text-filled caret-primary-600 outline-hidden transition-[background-color,border-color]',
+ 'w-full appearance-none border border-transparent bg-components-input-bg-normal text-components-input-text-filled caret-primary-600 outline-hidden',
'placeholder:text-components-input-text-placeholder',
'hover:border-components-input-border-hover hover:bg-components-input-bg-hover',
- 'focus:border-transparent focus:bg-components-input-bg-active focus:ring-2 focus:ring-state-accent-solid focus:transition-none',
+ 'focus:border-transparent focus:bg-components-input-bg-active focus:ring-2 focus:ring-state-accent-solid',
'enabled:data-invalid:border-components-input-border-destructive enabled:data-invalid:bg-components-input-bg-destructive',
'read-only:cursor-default enabled:read-only:not-data-invalid:hover:border-transparent enabled:read-only:not-data-invalid:hover:bg-components-input-bg-normal enabled:read-only:not-data-invalid:focus:bg-components-input-bg-normal',
'disabled:cursor-not-allowed disabled:bg-components-input-bg-disabled disabled:text-components-input-text-filled-disabled',
'disabled:hover:border-transparent disabled:hover:bg-components-input-bg-disabled',
- 'motion-reduce:transition-none',
]
// The same surface on a Base UI group part that wraps the control (NumberField, Combobox, Autocomplete).
// The group reads focus from its input, so buttons inside it keep their own indicator.
export const textControlGroupClassName = [
- 'flex w-full min-w-0 border border-transparent bg-components-input-bg-normal text-components-input-text-filled transition-[background-color,border-color]',
+ 'flex w-full min-w-0 border border-transparent bg-components-input-bg-normal text-components-input-text-filled',
'hover:border-components-input-border-hover hover:bg-components-input-bg-hover',
- 'has-[input:focus]:border-transparent has-[input:focus]:bg-components-input-bg-active has-[input:focus]:ring-2 has-[input:focus]:ring-state-accent-solid has-[input:focus]:transition-none',
+ 'has-[input:focus]:border-transparent has-[input:focus]:bg-components-input-bg-active has-[input:focus]:ring-2 has-[input:focus]:ring-state-accent-solid',
'data-invalid:not-data-disabled:border-components-input-border-destructive data-invalid:not-data-disabled:bg-components-input-bg-destructive',
'data-readonly:not-data-disabled:not-data-invalid:hover:border-transparent data-readonly:not-data-disabled:not-data-invalid:hover:bg-components-input-bg-normal data-readonly:not-data-disabled:not-data-invalid:has-[input:focus]:bg-components-input-bg-normal',
'data-disabled:cursor-not-allowed data-disabled:bg-components-input-bg-disabled data-disabled:text-components-input-text-filled-disabled',
'data-disabled:hover:border-transparent data-disabled:hover:bg-components-input-bg-disabled',
- 'motion-reduce:transition-none',
]
// The input inside `textControlGroupClassName`: the group owns the surface, so the input is bare.
diff --git a/packages/dify-ui/src/number-field/index.stories.tsx b/packages/dify-ui/src/number-field/index.stories.tsx
index bd1311b3681..85b25188a37 100644
--- a/packages/dify-ui/src/number-field/index.stories.tsx
+++ b/packages/dify-ui/src/number-field/index.stories.tsx
@@ -33,7 +33,6 @@ export default meta
type Story = StoryObj<typeof meta>
type NumberFieldExampleProps = {
- id: string
label: string
name: string
defaultValue?: number
@@ -48,7 +47,6 @@ type NumberFieldExampleProps = {
}
function NumberFieldExample({
- id,
label,
name,
defaultValue,
@@ -61,6 +59,8 @@ function NumberFieldExample({
disabled,
readOnly,
}: NumberFieldExampleProps) {
+ const id = React.useId()
+
return (
<div className="grid w-80 gap-1">
<label htmlFor={id} className="system-sm-medium text-text-secondary">
@@ -92,7 +92,6 @@ function NumberFieldExample({
export const Basic: Story = {
render: () => (
<NumberFieldExample
- id="top-k-basic"
name="topK"
label="Top K"
defaultValue={3}
@@ -108,7 +107,6 @@ export const Sizes: Story = {
render: () => (
<div className="grid w-80 gap-3">
<NumberFieldExample
- id="number-field-medium"
name="mediumNumber"
label="Medium"
defaultValue={64}
@@ -118,7 +116,6 @@ export const Sizes: Story = {
placeholder="Set value…"
/>
<NumberFieldExample
- id="number-field-large"
name="largeNumber"
label="Large with unit"
defaultValue={512}
diff --git a/packages/dify-ui/src/number-field/index.tsx b/packages/dify-ui/src/number-field/index.tsx
index ccad4130ef7..88122529325 100644
--- a/packages/dify-ui/src/number-field/index.tsx
+++ b/packages/dify-ui/src/number-field/index.tsx
@@ -114,13 +114,12 @@ function NumberFieldControls({ className, ...props }: NumberFieldControlsProps)
const numberFieldControlButtonVariants = cva(
[
- 'flex touch-manipulation items-center justify-center text-text-tertiary transition-colors select-none',
+ 'flex touch-manipulation items-center justify-center text-text-tertiary select-none',
'hover:bg-components-input-bg-hover focus-visible:bg-components-input-bg-hover',
insetFocusRingClassName,
'disabled:cursor-not-allowed disabled:hover:bg-transparent disabled:focus-visible:bg-transparent',
'group-data-disabled/number-field:cursor-not-allowed hover:group-data-disabled/number-field:bg-transparent focus-visible:group-data-disabled/number-field:bg-transparent',
'group-data-readonly/number-field:cursor-default hover:group-data-readonly/number-field:bg-transparent focus-visible:group-data-readonly/number-field:bg-transparent',
- 'motion-reduce:transition-none',
],
{
variants: {
diff --git a/packages/dify-ui/src/pagination/index.tsx b/packages/dify-ui/src/pagination/index.tsx
index e2d25b3726f..4629afc5a97 100644
--- a/packages/dify-ui/src/pagination/index.tsx
+++ b/packages/dify-ui/src/pagination/index.tsx
@@ -3,6 +3,7 @@
import { Button as BaseButton } from '@base-ui/react/button'
import * as React from 'react'
import { cn } from '../cn'
+import { iconButtonVariants } from '../icon-button'
import { focusRingClassName } from '../internal/focus'
import { resolveClassName } from '../internal/resolve-class-name'
import { mergeProps } from '../merge-props'
@@ -217,13 +218,10 @@ type PaginationNextProps = Omit<BaseButton.Props, 'children'> & {
children?: React.ReactNode
}
-const paginationArrowButtonClassName = [
- 'inline-flex size-7 shrink-0 touch-manipulation items-center justify-center rounded-lg border-[0.5px] border-components-button-secondary-border bg-components-button-secondary-bg text-components-button-secondary-text shadow-xs backdrop-blur-[10px] transition-[background-color,border-color,color,box-shadow]',
- 'hover:border-components-button-secondary-border-hover hover:bg-components-button-secondary-bg-hover',
- focusRingClassName,
- 'disabled:cursor-not-allowed disabled:border-components-button-secondary-border-disabled disabled:bg-components-button-secondary-bg-disabled disabled:text-components-button-secondary-text-disabled disabled:shadow-none',
- 'motion-reduce:transition-none',
-]
+const paginationArrowButtonClassName = cn(
+ iconButtonVariants({ variant: 'secondary', size: 'lg' }),
+ 'size-7 shrink-0 touch-manipulation',
+)
function PaginationPrevious({
className,
@@ -387,7 +385,7 @@ function PaginationPageJump({
}
className={(state) =>
cn(
- 'inline-flex h-7 touch-manipulation items-center justify-center gap-0.5 rounded-lg px-2 py-1.5 system-xs-medium text-text-secondary tabular-nums transition-colors hover:cursor-text hover:bg-state-base-hover-alt motion-reduce:transition-none',
+ 'inline-flex h-7 touch-manipulation items-center justify-center gap-0.5 rounded-lg px-2 py-1.5 system-xs-medium text-text-secondary tabular-nums hover:cursor-text hover:bg-state-base-hover-alt',
focusRingClassName,
resolveClassName(className, state),
)
diff --git a/packages/dify-ui/src/radio-group/index.stories.tsx b/packages/dify-ui/src/radio-group/index.stories.tsx
index 4bd68caa688..3bec9a6413d 100644
--- a/packages/dify-ui/src/radio-group/index.stories.tsx
+++ b/packages/dify-ui/src/radio-group/index.stories.tsx
@@ -146,7 +146,7 @@ function OptionCardsDemo() {
value={option.value}
nativeButton
render={<button type="button" />}
- className="w-full rounded-xl border border-components-option-card-option-border bg-components-option-card-option-bg p-4 text-left outline-hidden transition-colors hover:bg-state-base-hover focus-visible:ring-2 focus-visible:ring-state-accent-solid data-checked:border-components-option-card-option-selected-border data-checked:bg-components-option-card-option-selected-bg"
+ className="w-full rounded-xl border border-components-option-card-option-border bg-components-option-card-option-bg p-4 text-left outline-hidden hover:bg-state-base-hover focus-visible:ring-2 focus-visible:ring-state-accent-solid data-checked:border-components-option-card-option-selected-border data-checked:bg-components-option-card-option-selected-bg"
>
<div className="flex items-start justify-between gap-3">
<div>
diff --git a/packages/dify-ui/src/radio-group/index.tsx b/packages/dify-ui/src/radio-group/index.tsx
index cd26e181f71..6e8fdb8a894 100644
--- a/packages/dify-ui/src/radio-group/index.tsx
+++ b/packages/dify-ui/src/radio-group/index.tsx
@@ -35,7 +35,7 @@ function RadioControl({ className, ...props }: RadioControlProps) {
keepMounted
className={(state) =>
cn(
- 'inline-flex size-4 shrink-0 touch-manipulation items-center justify-center rounded-full p-0 transition-colors motion-reduce:transition-none',
+ 'inline-flex size-4 shrink-0 touch-manipulation items-center justify-center rounded-full p-0',
'border border-components-radio-border bg-components-radio-bg shadow-xs shadow-shadow-shadow-3',
'hover:border-components-radio-border-hover hover:bg-components-radio-bg-hover',
'data-checked:border-[5px] data-checked:border-components-radio-border-checked data-checked:hover:border-components-radio-border-checked-hover',
@@ -57,7 +57,7 @@ function Radio<Value = string>({ className, ...props }: RadioProps<Value>) {
<BaseRadio.Root<Value>
className={(state) =>
cn(
- 'inline-flex size-4 shrink-0 touch-manipulation items-center justify-center rounded-full p-0 transition-colors motion-reduce:transition-none',
+ 'inline-flex size-4 shrink-0 touch-manipulation items-center justify-center rounded-full p-0',
'border border-components-radio-border bg-components-radio-bg shadow-xs shadow-shadow-shadow-3',
'hover:border-components-radio-border-hover hover:bg-components-radio-bg-hover',
checkedControlFocusClassName,
diff --git a/packages/dify-ui/src/select/index.tsx b/packages/dify-ui/src/select/index.tsx
index 6938a4f652f..2439470f4c0 100644
--- a/packages/dify-ui/src/select/index.tsx
+++ b/packages/dify-ui/src/select/index.tsx
@@ -109,7 +109,7 @@ function SelectTrigger({ className, children, size, ...props }: SelectTriggerPro
{...props}
>
<span className="min-w-0 grow truncate">{children}</span>
- <BaseSelect.Icon className="shrink-0 text-text-quaternary transition-colors group-data-readonly/select-trigger:hidden group-[:hover:not([data-disabled])]/select-trigger:text-text-secondary data-popup-open:text-text-secondary">
+ <BaseSelect.Icon className="shrink-0 text-text-quaternary group-data-readonly/select-trigger:hidden group-[:hover:not([data-disabled])]/select-trigger:text-text-secondary data-popup-open:text-text-secondary">
<span className="i-ri-arrow-down-s-line h-4 w-4" aria-hidden="true" />
</BaseSelect.Icon>
</BaseSelect.Trigger>
diff --git a/packages/dify-ui/src/textarea/index.stories.tsx b/packages/dify-ui/src/textarea/index.stories.tsx
index 65c198f6a1e..484369029b9 100644
--- a/packages/dify-ui/src/textarea/index.stories.tsx
+++ b/packages/dify-ui/src/textarea/index.stories.tsx
@@ -26,19 +26,10 @@ type Story = StoryObj<typeof meta>
export const Basic: Story = {
render: () => (
- <div className="w-80">
- <label
- htmlFor="workspace-description"
- className="mb-1 block w-fit py-1 system-sm-medium text-text-secondary"
- >
- Workspace description
- </label>
- <Textarea
- id="workspace-description"
- name="workspaceDescription"
- placeholder="Describe how this workspace is used..."
- />
- </div>
+ <Field name="workspaceDescription" className="w-80">
+ <FieldLabel>Workspace description</FieldLabel>
+ <Textarea placeholder="Describe how this workspace is used..." />
+ </Field>
),
}
diff --git a/web/app/components/app/app-access-control/access-control-item.tsx b/web/app/components/app/app-access-control/access-control-item.tsx
index b1cd869e9b1..ae71ff0ddd3 100644
--- a/web/app/components/app/app-access-control/access-control-item.tsx
+++ b/web/app/components/app/app-access-control/access-control-item.tsx
@@ -16,7 +16,7 @@ export default function AccessControlItem({ type, children, disabled }: AccessCo
disabled={disabled}
render={<div />}
className={cn(
- 'rounded-[10px] border-[0.5px] border-components-option-card-option-border bg-components-option-card-option-bg shadow-xs transition-colors',
+ 'rounded-[10px] border-[0.5px] border-components-option-card-option-border bg-components-option-card-option-bg shadow-xs',
'focus-visible:ring-2 focus-visible:ring-state-accent-solid focus-visible:outline-hidden',
'data-checked:border-components-option-card-option-selected-border data-checked:bg-components-option-card-option-selected-bg data-checked:inset-ring-[0.5px] data-checked:inset-ring-components-option-card-option-selected-border',
'cursor-pointer hover:border-components-option-card-option-border-hover hover:bg-components-option-card-option-bg-hover data-disabled:cursor-not-allowed data-disabled:opacity-60 data-disabled:hover:border-components-option-card-option-border data-disabled:hover:bg-components-option-card-option-bg',
diff --git a/web/app/components/base/features/new-feature-panel/follow-up-setting-modal.tsx b/web/app/components/base/features/new-feature-panel/follow-up-setting-modal.tsx
index a30a5e42ab3..90ab62b24d1 100644
--- a/web/app/components/base/features/new-feature-panel/follow-up-setting-modal.tsx
+++ b/web/app/components/base/features/new-feature-panel/follow-up-setting-modal.tsx
@@ -214,7 +214,7 @@ function FollowUpSettingsForm({ data, onSave }: Omit<FollowUpSettingsDialogProps
value={PROMPT_MODE.default}
nativeButton
render={<button type="button" />}
- className="w-full rounded-xl border border-components-option-card-option-border bg-components-option-card-option-bg p-4 text-left transition-colors hover:bg-state-base-hover data-checked:border-components-option-card-option-selected-border data-checked:bg-components-option-card-option-selected-bg data-checked:hover:bg-components-option-card-option-selected-bg"
+ className="w-full rounded-xl border border-components-option-card-option-border bg-components-option-card-option-bg p-4 text-left hover:bg-state-base-hover data-checked:border-components-option-card-option-selected-border data-checked:bg-components-option-card-option-selected-bg data-checked:hover:bg-components-option-card-option-selected-bg"
>
<div className="flex items-start justify-between gap-3">
<div>
@@ -247,7 +247,7 @@ function FollowUpSettingsForm({ data, onSave }: Omit<FollowUpSettingsDialogProps
</FieldItem>
<FieldItem
className={cn(
- 'rounded-xl border border-components-option-card-option-border bg-components-option-card-option-bg p-4 transition-colors hover:bg-state-base-hover',
+ 'rounded-xl border border-components-option-card-option-border bg-components-option-card-option-bg p-4 hover:bg-state-base-hover',
promptMode === PROMPT_MODE.custom &&
'border-components-option-card-option-selected-border bg-components-option-card-option-selected-bg hover:bg-components-option-card-option-selected-bg',
)}
diff --git a/web/app/components/base/radio-card/index.tsx b/web/app/components/base/radio-card/index.tsx
index f3778823d6b..50ff07dc305 100644
--- a/web/app/components/base/radio-card/index.tsx
+++ b/web/app/components/base/radio-card/index.tsx
@@ -98,7 +98,7 @@ function RadioCard<Value = string>(props: Props<Value>) {
</>
)
const rootClassName = cn(
- 'group/radio-card relative rounded-xl border-[0.5px] border-components-option-card-option-border bg-components-option-card-option-bg p-3 transition-colors',
+ 'group/radio-card relative rounded-xl border-[0.5px] border-components-option-card-option-border bg-components-option-card-option-bg p-3',
'has-data-checked:border-[1.5px] has-data-checked:bg-components-option-card-option-selected-bg',
className,
)
diff --git a/web/app/components/base/tab-slider-new/index.tsx b/web/app/components/base/tab-slider-new/index.tsx
index 6cc2273adcc..145406d9f40 100644
--- a/web/app/components/base/tab-slider-new/index.tsx
+++ b/web/app/components/base/tab-slider-new/index.tsx
@@ -28,7 +28,7 @@ const TabSliderNew: FC<TabSliderProps> = ({ ariaLabel, className, value, onChang
key={option.value}
value={option.value}
data-testid={`tab-item-${option.value}`}
- className="mr-1 h-8 justify-start gap-0 overflow-visible px-3 py-1.75 text-start text-[13px] leading-4.5 font-medium whitespace-normal text-text-tertiary transition-none hover:bg-state-base-hover hover:text-text-tertiary data-checked:border-components-main-nav-nav-button-border data-checked:bg-state-base-hover data-checked:text-components-main-nav-nav-button-text-active data-checked:shadow-xs"
+ className="mr-1 h-8 justify-start gap-0 overflow-visible px-3 py-1.75 text-start text-[13px] leading-4.5 font-medium whitespace-normal text-text-tertiary hover:bg-state-base-hover hover:text-text-tertiary data-checked:border-components-main-nav-nav-button-border data-checked:bg-state-base-hover data-checked:text-components-main-nav-nav-button-text-active data-checked:shadow-xs"
>
{option.icon}
{option.text}
diff --git a/web/app/components/explore/category.tsx b/web/app/components/explore/category.tsx
index 9dc91f36850..0d1c91d3c4d 100644
--- a/web/app/components/explore/category.tsx
+++ b/web/app/components/explore/category.tsx
@@ -61,7 +61,7 @@ function Category({ className, list, value, onChange, allCategoriesEn }: ICatego
value={item.name}
nativeButton
render={<button type="button" />}
- className="h-8 min-w-12 shrink-0 cursor-pointer touch-manipulation rounded-lg border-0 px-2.5 py-2 text-center system-sm-medium text-text-tertiary shadow-none transition-colors hover:bg-state-base-hover focus-visible:ring-2 focus-visible:ring-state-accent-solid focus-visible:outline-hidden data-checked:border-0 data-checked:bg-state-base-active data-checked:system-sm-semibold data-checked:text-text-secondary data-checked:shadow-none motion-reduce:transition-none"
+ className="h-8 min-w-12 shrink-0 cursor-pointer touch-manipulation rounded-lg border-0 px-2.5 py-2 text-center system-sm-medium text-text-tertiary shadow-none hover:bg-state-base-hover focus-visible:ring-2 focus-visible:ring-state-accent-solid focus-visible:outline-hidden data-checked:border-0 data-checked:bg-state-base-active data-checked:system-sm-semibold data-checked:text-text-secondary data-checked:shadow-none"
>
{item.label}
</RadioItem>
diff --git a/web/app/components/header/account-setting/update-setting-option-card.tsx b/web/app/components/header/account-setting/update-setting-option-card.tsx
index f356375551b..c31d77228d0 100644
--- a/web/app/components/header/account-setting/update-setting-option-card.tsx
+++ b/web/app/components/header/account-setting/update-setting-option-card.tsx
@@ -29,7 +29,7 @@ const UpdateSettingOptionCard = <Value extends string>({
onMouseLeave={onMouseLeave}
title={label}
className={cn(
- 'flex min-w-0 flex-1 cursor-pointer items-center justify-center rounded-lg border border-components-option-card-option-border bg-components-option-card-option-bg p-2 px-3 text-center system-sm-regular text-text-secondary shadow-none outline-hidden transition-colors',
+ 'flex min-w-0 flex-1 cursor-pointer items-center justify-center rounded-lg border border-components-option-card-option-border bg-components-option-card-option-bg p-2 px-3 text-center system-sm-regular text-text-secondary shadow-none outline-hidden',
'hover:border-components-option-card-option-border-hover hover:bg-components-option-card-option-bg-hover',
'focus-visible:ring-1 focus-visible:ring-components-input-border-active focus-visible:outline-hidden',
'data-checked:border-[1.5px] data-checked:border-components-option-card-option-selected-border data-checked:bg-components-option-card-option-selected-bg data-checked:system-sm-medium data-checked:text-text-primary data-checked:shadow-xs',
diff --git a/web/app/components/integrations/permission-quick-panel.tsx b/web/app/components/integrations/permission-quick-panel.tsx
index 4d7a18b7b58..a2922620231 100644
--- a/web/app/components/integrations/permission-quick-panel.tsx
+++ b/web/app/components/integrations/permission-quick-panel.tsx
@@ -21,7 +21,7 @@ type PermissionQuickPanelProps = {
}
const permissionOptionCardClassName = cn(
- 'flex h-8 w-26 shrink-0 items-center justify-center rounded-lg border border-components-option-card-option-border bg-components-option-card-option-bg p-2 text-center system-sm-regular text-text-secondary transition-colors',
+ 'flex h-8 w-26 shrink-0 items-center justify-center rounded-lg border border-components-option-card-option-border bg-components-option-card-option-bg p-2 text-center system-sm-regular text-text-secondary',
'hover:border-components-option-card-option-border-hover hover:bg-components-option-card-option-bg-hover',
'focus-visible:ring-2 focus-visible:ring-components-input-border-hover focus-visible:outline-hidden',
'data-checked:border-[1.5px] data-checked:border-components-option-card-option-selected-border data-checked:bg-components-option-card-option-selected-bg data-checked:font-medium data-checked:text-text-primary data-checked:shadow-xs data-checked:shadow-shadow-shadow-3',
diff --git a/web/app/components/workflow/nodes/_base/components/form-input-type-switch.tsx b/web/app/components/workflow/nodes/_base/components/form-input-type-switch.tsx
index 61a71a53151..7e242d73fc3 100644
--- a/web/app/components/workflow/nodes/_base/components/form-input-type-switch.tsx
+++ b/web/app/components/workflow/nodes/_base/components/form-input-type-switch.tsx
@@ -19,7 +19,7 @@ type TypeOptionProps = {
}
const optionClassName =
- 'cursor-pointer border-0 px-2.5 py-1.5 text-text-tertiary transition-none hover:text-text-tertiary data-checked:border-0 data-checked:text-text-secondary data-checked:shadow-black/5 data-checked:hover:bg-components-segmented-control-item-active-bg data-checked:hover:text-text-secondary data-disabled:text-text-tertiary data-disabled:data-checked:bg-components-segmented-control-item-active-bg data-disabled:data-checked:text-text-secondary data-disabled:data-checked:shadow-xs data-disabled:data-checked:shadow-black/5'
+ 'cursor-pointer border-0 px-2.5 py-1.5 text-text-tertiary hover:text-text-tertiary data-checked:border-0 data-checked:text-text-secondary data-checked:shadow-black/5 data-checked:hover:bg-components-segmented-control-item-active-bg data-checked:hover:text-text-secondary data-disabled:text-text-tertiary data-disabled:data-checked:bg-components-segmented-control-item-active-bg data-disabled:data-checked:text-text-secondary data-disabled:data-checked:shadow-xs data-disabled:data-checked:shadow-black/5'
function TypeOption({ children, label, selected, value }: TypeOptionProps) {
const option = (
diff --git a/web/app/components/workflow/nodes/human-input/components/timeout.tsx b/web/app/components/workflow/nodes/human-input/components/timeout.tsx
index 22072e5831e..8ee4a158280 100644
--- a/web/app/components/workflow/nodes/human-input/components/timeout.tsx
+++ b/web/app/components/workflow/nodes/human-input/components/timeout.tsx
@@ -13,7 +13,7 @@ type Props = Readonly<{
}>
const unitOptionClassName =
- 'cursor-pointer border-0 text-text-tertiary transition-none data-checked:border-0 data-checked:shadow-sm data-checked:shadow-black/10 data-checked:hover:bg-components-segmented-control-item-active-bg data-checked:hover:text-text-accent-light-mode-only data-disabled:cursor-default data-disabled:text-text-tertiary data-disabled:data-checked:bg-components-segmented-control-item-active-bg data-disabled:data-checked:text-text-accent-light-mode-only data-disabled:data-checked:shadow-sm data-disabled:data-checked:shadow-black/10'
+ 'cursor-pointer border-0 text-text-tertiary data-checked:border-0 data-checked:shadow-sm data-checked:shadow-black/10 data-checked:hover:bg-components-segmented-control-item-active-bg data-checked:hover:text-text-accent-light-mode-only data-disabled:cursor-default data-disabled:text-text-tertiary data-disabled:data-checked:bg-components-segmented-control-item-active-bg data-disabled:data-checked:text-text-accent-light-mode-only data-disabled:data-checked:shadow-sm data-disabled:data-checked:shadow-black/10'
const TimeoutInput: FC<Props> = ({ timeout, unit, onChange, readonly }) => {
const { t } = useTranslation(['workflow', 'workflowHumanInput'])
diff --git a/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/search-method-option.tsx b/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/search-method-option.tsx
index 10c79668aad..7aea971f561 100644
--- a/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/search-method-option.tsx
+++ b/web/app/components/workflow/nodes/knowledge-base/components/retrieval-setting/search-method-option.tsx
@@ -210,7 +210,7 @@ function HybridSearchModeRadioCard({
render={<button type="button" />}
disabled={readonly}
className={cn(
- 'w-full rounded-xl border border-components-option-card-option-border bg-components-option-card-option-bg p-3 text-left outline-hidden transition-colors',
+ 'w-full rounded-xl border border-components-option-card-option-border bg-components-option-card-option-bg p-3 text-left outline-hidden',
'data-checked:border-[1.5px] data-checked:bg-components-option-card-option-selected-bg',
'focus-visible:ring-1 focus-visible:ring-components-input-border-active',
'cursor-pointer hover:shadow-xs data-disabled:cursor-not-allowed data-disabled:hover:shadow-none',