Skip to content

Commit 19c0d2d

Browse files
committed
fix(my-space): continuous step line, check alignment, compliance_choice deadline (#3207)
Post-review fixes from #3280: - Vertical line between steps is now continuous: replaced the inter-row `stepLine` divs with an absolutely positioned `::before` pseudo-element on each `.stepRow`, so the line fills the full height alongside step content - `.transmittedRow` aligns to `flex-start` so the check icon sits on the first text line ("Votre déclaration a été transmise") instead of being centered between the two lines - `compliance_choice` variant now shows an Échéance row under step 2, matching Figma
1 parent 5c41446 commit 19c0d2d

2 files changed

Lines changed: 22 additions & 11 deletions

File tree

packages/app/src/modules/my-space/DeclarationProcessPanel.module.scss

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,26 @@
4444
}
4545

4646
.stepRow {
47+
position: relative;
4748
display: flex;
4849
gap: 1rem;
4950
align-items: flex-start;
5051
}
5152

53+
.stepRow:not(:last-child) {
54+
padding-bottom: 1rem;
55+
}
56+
57+
.stepRow:not(:last-child)::before {
58+
content: "";
59+
position: absolute;
60+
left: 13.5px;
61+
top: 28px;
62+
bottom: 0;
63+
width: 1px;
64+
background-color: var(--border-default-grey);
65+
}
66+
5267
.stepCircle {
5368
width: 28px;
5469
height: 28px;
@@ -75,13 +90,6 @@
7590
background-color: var(--background-flat-success);
7691
}
7792

78-
.stepLine {
79-
width: 1px;
80-
min-height: 1rem;
81-
margin-left: 14px;
82-
background-color: var(--border-default-grey);
83-
}
84-
8593
.stepContent {
8694
display: flex;
8795
flex-direction: column;
@@ -94,7 +102,7 @@
94102
.transmittedRow {
95103
display: flex;
96104
gap: 0.5rem;
97-
align-items: center;
105+
align-items: flex-start;
98106
width: 100%;
99107
}
100108

packages/app/src/modules/my-space/VerticalStepper.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ export function VerticalStepper({
5757
year={year}
5858
/>
5959
</div>
60-
<div className={styles.stepLine} />
6160
<div className={styles.stepRow}>
6261
<StepCircle number={2} status={step2} />
6362
<Step2Content
@@ -69,7 +68,6 @@ export function VerticalStepper({
6968
variant={variant}
7069
/>
7170
</div>
72-
<div className={styles.stepLine} />
7371
<div className={styles.stepRow}>
7472
<StepCircle number={3} status={step3} />
7573
<Step3Content
@@ -224,7 +222,12 @@ function Step2Content({
224222
}
225223

226224
if (variant === "compliance_choice") {
227-
return <div className={styles.stepContent}>{title}</div>;
225+
return (
226+
<div className={styles.stepContent}>
227+
{title}
228+
<DeadlineRow date={campaignDeadlines.decl2ModificationDeadline} />
229+
</div>
230+
);
228231
}
229232

230233
if (variant === "compliance") {

0 commit comments

Comments
 (0)