Merge pull request #12561 from ToolJet/feat/steps-v2-edits

steps fix
This commit is contained in:
Johnson Cherian 2025-04-14 13:00:28 +05:30 committed by GitHub
commit d2dd2918dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 2 deletions

View file

@ -38,6 +38,11 @@ export const Steps = function Button({ properties, styles, fireEvent, setExposed
'--currentStepLabel': currentStepLabel === '#1B1F24' ? 'var(--text-primary)' : currentStepLabel,
};
const theme = properties.variant;
console.log(theme);
console.log(properties);
console.log(styles);
console.log(completedLabel, 'completed');
const activeStepHandler = (id) => {
const step = filteredSteps.find((item) => item.id == id);
if (step) {
@ -142,7 +147,8 @@ export const Steps = function Button({ properties, styles, fireEvent, setExposed
<a
className={`step-item ${item.id == activeStepId && 'active'} ${
!(!isDisabled && !isStepDisabled) && 'step-item-disabled'
} ${color && `step-${color}`} ${
} ${color && `step-${color}`}
${
index < currentStepIndex
? 'completed-label'
: index == currentStepIndex

View file

@ -17513,7 +17513,12 @@ a.step-item:hover {
width: calc(100% - 32px) !important;
}
}
.steps-counter .step-item:before {
color:var(--completedLabel) !important;
}
.steps .step-item.active:before{
color : var(--currentStepLabel) !important;
}
.step-item {
font-weight: 500;
}