Skip to content

Commit 1fab193

Browse files
committed
fix(form): change color for disabled step
1 parent 6708764 commit 1fab193

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

packages/Form/steps/src/Step.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { ComponentPropsWithoutRef } from 'react';
2-
import StepNoLink from './StepNoLink';
2+
import StepDisabled from './StepDisabled';
33
import StepLink from './StepLink';
44
import StepCurrent from './StepCurrent';
55

@@ -42,7 +42,7 @@ const Step = ({
4242
);
4343
default:
4444
return (
45-
<StepNoLink
45+
<StepDisabled
4646
id={id}
4747
title={title}
4848
classModifier={classModifier}
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React, { ComponentPropsWithoutRef } from 'react';
2+
import StepNoLink from './StepNoLink';
3+
4+
type Props = ComponentPropsWithoutRef<typeof StepNoLink>;
5+
const StepDisabled = ({
6+
className = 'disabled af-steps-list-step',
7+
...otherProps
8+
}: Props) => <StepNoLink className={className} {...otherProps} />;
9+
10+
export default StepDisabled;

packages/Form/steps/src/__tests__/__snapshots__/Step.spec.tsx.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ exports[`<Steps> renders Steps correctly 1`] = `
5151
</a>
5252
</li>
5353
<li
54-
class="af-steps-list-step number"
54+
class="disabled af-steps-list-step number"
5555
title="Final step"
5656
>
5757
<div

packages/Form/steps/src/step-form-new.scss

+7-2
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,15 @@ $steps-color-active: mix($black, $brand-primary, 20%);
7070
}
7171

7272
&.disabled {
73-
color: $color-btn-disabled;
73+
color: $color-gray-1;
7474

7575
&::before {
76-
color: $color-btn-disabled;
76+
color: $color-gray-1;
77+
}
78+
79+
& .af-steps-list-stepNumber,
80+
& .af-steps-list-stepTitle {
81+
color: $color-gray-1;
7782
}
7883
}
7984

0 commit comments

Comments
 (0)