@@ -61,6 +61,10 @@ $progress-bar-animation-duration: .25s;
61
61
width : 100% ;
62
62
}
63
63
64
+ .hds-stepper-nav__step-button {
65
+ border-radius : 0 0 var (--token-border-radius-medium ) var (--token-border-radius-medium );
66
+ }
67
+
64
68
.hds-stepper-nav__step-content {
65
69
position : relative ;
66
70
display : flex ;
@@ -86,7 +90,6 @@ $progress-bar-animation-duration: .25s;
86
90
flex-direction : column ;
87
91
align-items : center ;
88
92
padding : 16px 8px 12px 8px ;
89
- border-radius : 0 0 var (--token-border-radius-medium ) var (--token-border-radius-medium );
90
93
}
91
94
92
95
.hds-stepper-nav__step-title {
@@ -117,16 +120,6 @@ $progress-bar-animation-duration: .25s;
117
120
// Active
118
121
119
122
.hds-stepper-nav__step--active {
120
- .hds-stepper-nav__step-button {
121
- @include hds-focus-ring-with-pseudo-element (
122
- $top : -3px ,
123
- $right : -1px ,
124
- $bottom : -1px ,
125
- $left : -1px ,
126
- $radius : 0 0 var (--token-border-radius-medium ) var (--token-border-radius-medium )
127
- );
128
- }
129
-
130
123
.hds-stepper-indicator-step__svg-hexagon path ,
131
124
.hds-stepper-indicator-step__status ,
132
125
.hds-stepper-nav__step-title {
@@ -154,6 +147,15 @@ $progress-bar-animation-duration: .25s;
154
147
text-underline-position : from- font;
155
148
}
156
149
150
+ .hds-stepper-nav__step--active .hds-stepper-nav__step-button {
151
+ @include hds-focus-ring-with-pseudo-element (
152
+ $top : -3px ,
153
+ $right : -1px ,
154
+ $bottom : -1px ,
155
+ $left : -1px ,
156
+ $radius : 0 0 var (--token-border-radius-medium ) var (--token-border-radius-medium )
157
+ );
158
+ }
157
159
}
158
160
159
161
// INTERACTIVE
@@ -171,9 +173,7 @@ $progress-bar-animation-duration: .25s;
171
173
172
174
& :hover ,
173
175
& .mock-hover {
174
- .hds-stepper-nav__step-text {
175
- background-color : var (--token-color-surface-interactive-hover );
176
- }
176
+ background-color : var (--token-color-surface-interactive-hover );
177
177
178
178
.hds-stepper-nav__step-title {
179
179
color : var (--token-color-foreground-action-hover );
@@ -182,9 +182,7 @@ $progress-bar-animation-duration: .25s;
182
182
183
183
& :active ,
184
184
& .mock-active {
185
- .hds-stepper-nav__step-text {
186
- background-color : var (--token-color-surface-interactive-active );
187
- }
185
+ background-color : var (--token-color-surface-interactive-active );
188
186
189
187
.hds-stepper-nav__step-title {
190
188
color : var (--token-color-foreground-action-active );
@@ -348,17 +346,38 @@ $progress-bar-animation-duration: .25s;
348
346
flex-direction : column ;
349
347
}
350
348
351
- .hds-stepper-nav__step :not (:last-of-type ) {
352
- margin-bottom : 16px ;
349
+ .hds-stepper-nav__step-content {
350
+ padding : 8px ;
351
+ border-radius : 0 ;
353
352
}
354
353
355
354
.hds-stepper-nav__step-progress {
356
- top : -12px ;
357
- left : 8px ;
355
+ position : static ;
358
356
justify-content : start ;
359
357
}
360
358
361
359
.hds-stepper-nav__step-text {
362
360
align-items : start ;
361
+ margin-top : 4px ;
362
+ padding : 0 ;
363
+ }
364
+
365
+ .hds-stepper-nav--interactive .hds-stepper-nav__step--interactive .hds-stepper-nav__step-button ,
366
+ .hds-stepper-nav--interactive .hds-stepper-nav__step--active .hds-stepper-nav__step-button {
367
+ @include hds-focus-ring-with-pseudo-element (
368
+ $top : -3px ,
369
+ $right : -1px ,
370
+ $bottom : -1px ,
371
+ $left : -1px ,
372
+ $radius : 0
373
+ );
374
+ }
375
+
376
+ .hds-stepper-nav__step--active {
377
+ .hds-stepper-indicator-step__svg-hexagon path ,
378
+ .hds-stepper-indicator-step__status ,
379
+ .hds-stepper-nav__step-title {
380
+ transition : none ;
381
+ }
363
382
}
364
383
}
0 commit comments