mirror of https://github.com/langgenius/dify.git
refactor: use css var
This commit is contained in:
parent
c4aa98e609
commit
b528b1e875
|
|
@ -30,7 +30,7 @@ export const StepperStep: FC<StepperStepProps> = (props) => {
|
|||
? 'text-white'
|
||||
: !isDisabled
|
||||
? 'text-text-tertiary'
|
||||
: 'text-text-tertiary/30',
|
||||
: 'text-text-tertiary opacity-30',
|
||||
)}>
|
||||
{label}
|
||||
</div>
|
||||
|
|
@ -41,7 +41,7 @@ export const StepperStep: FC<StepperStepProps> = (props) => {
|
|||
? 'text-text-accent'
|
||||
: !isDisabled
|
||||
? 'text-text-tertiary'
|
||||
: 'text-text-tertiary/30',
|
||||
: 'text-text-tertiary opacity-30',
|
||||
)}>{name}</div>
|
||||
</div>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { useTranslation } from 'react-i18next'
|
|||
import { Stepper, type StepperProps } from '../stepper'
|
||||
import classNames from '@/utils/classnames'
|
||||
|
||||
export type TopbarProps = Pick<StepperProps, 'activeStepIndex'> & {
|
||||
export type TopbarProps = Pick<StepperProps, 'activeIndex'> & {
|
||||
className?: string
|
||||
}
|
||||
|
||||
|
|
@ -21,7 +21,7 @@ export const Topbar: FC<TopbarProps> = (props) => {
|
|||
return <div className={classNames('flex items-center justify-between relative', className)}>
|
||||
<Link href={'/datasets'} className="h-12 pl-2 pr-6 py-2 justify-start items-center gap-1 inline-flex">
|
||||
<RiArrowLeftLine className='size-4 mr-2' />
|
||||
<p className="text-[#101827] text-[13px] font-semibold uppercase leading-none">
|
||||
<p className="text-text-primary text-[13px] font-semibold uppercase leading-none">
|
||||
{t('datasetCreation.steps.header.creation')}
|
||||
</p>
|
||||
</Link>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ const ErrorMessage: FC<Props> = ({
|
|||
return (
|
||||
<div className={cn(className, 'py-2 px-4 border-t border-gray-200 bg-[#FFFAEB]')}>
|
||||
<div className='flex items-center h-5'>
|
||||
<AlertTriangle className='mr-2 w-4 h-4 text-[#F79009]' />
|
||||
<AlertTriangle className='mr-2 w-4 h-4 text-text-warning-secondary' />
|
||||
<div className='text-sm font-medium text-[#DC6803]'>{title}</div>
|
||||
</div>
|
||||
{errorMsg && (
|
||||
|
|
|
|||
Loading…
Reference in New Issue