Skip to content

Commit 273c7ec

Browse files
committed
Refactor Stepper component styles and improve demos
1 parent 851e7e6 commit 273c7ec

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

stories/Stepper/ClassBased.stories.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,16 @@ export const BasicStepper = {
7777
</Stepper>
7878

7979
<div className="button-container">
80-
{activeStep > 0 && (
80+
{
8181
<button
8282
className="nav-button prev"
8383
onClick={() => handleStepChange(activeStep - 1)}
8484
aria-label="Previous Step"
85+
disabled={activeStep === 0}
8586
>
86-
Back
87+
Prev
8788
</button>
88-
)}
89+
}
8990
{activeStep < steps.length - 1 && (
9091
<button
9192
className="nav-button next"

stories/Stepper/VerticalStepper.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,24 @@
7272
}
7373

7474
.custom-step-content-wrapper {
75-
margin-top: 16px;
76-
padding-left: 48px;
77-
width: 300px;
75+
margin-top: 5px;
76+
padding-left: 5px;
77+
width: 500px;
7878
color: #666;
7979
box-sizing: border-box;
8080
}
8181

8282
.custom-navigation-buttons {
8383
display: flex;
8484
justify-content: center;
85+
align-items: center;
8586
gap: 12px;
8687
margin-top: 24px;
8788
}
8889

8990
.custom-navigation-button {
90-
padding: 10px 20px;
91+
height: 40px;
92+
padding: 0 20px;
9193
background-color: #1976d2;
9294
color: white;
9395
border: none;

0 commit comments

Comments
 (0)