File tree Expand file tree Collapse file tree 3 files changed +31
-5
lines changed
Expand file tree Collapse file tree 3 files changed +31
-5
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export const BasicStepper = {
6363 >
6464 < StepHeader className = "step-header" >
6565 < div className = { `step-number-container ${ activeStep > index ? 'completed' : activeStep === index ? 'active' : 'inactive' } ` } >
66- { activeStep > index ? '✔️ ' : index + 1 }
66+ { activeStep > index ? '' : index + 1 }
6767 </ div >
6868 < div className = "step-header-text" >
6969 { step . header }
@@ -143,7 +143,7 @@ export const VerticalStepper = {
143143 >
144144 < StepHeader className = "custom-step-header-wrapper" >
145145 < div className = { `custom-step-number-badge ${ activeStep > index ? 'completed' : activeStep === index ? 'active' : 'inactive' } ` } aria-label = { `Step ${ index + 1 } ` } >
146- { activeStep > index ? '✔️ ' : index + 1 }
146+ { activeStep > index ? '' : index + 1 }
147147 </ div >
148148 < div className = "custom-step-header-text" >
149149 { step . header }
@@ -349,7 +349,7 @@ export const StepperDemo = {
349349 >
350350 < StepHeader className = "step-header" >
351351 < div className = { `step-number-container ${ activeStep > index ? 'completed' : activeStep === index ? 'active' : 'inactive' } ` } >
352- { activeStep > index ? '✔️ ' : index + 1 }
352+ { activeStep > index ? '' : index + 1 }
353353 </ div >
354354 < div className = "step-header-text" >
355355 { step . header }
Original file line number Diff line number Diff line change 6767 font-weight : bold;
6868 margin-bottom : 8px ;
6969 box-sizing : border-box;
70+ position : relative;
7071}
71-
7272.step-header .step-number-container .completed ,
7373.step-header .step-number-container .active {
7474 background-color : # 1976d2 ;
7575 color : white;
7676}
7777
78+ .step-header .step-number-container .completed ::after {
79+ content : '✓' ;
80+ font-size : 18px ;
81+ color : white;
82+ position : absolute;
83+ top : 50% ;
84+ left : 50% ;
85+ transform : translate (-50% , -50% );
86+ }
87+
7888.step-header .step-header-text {
7989 font-size : 14px ;
8090 text-align : center;
119129 background-color : # 1565c0 ;
120130}
121131
132+ .nav-button : disabled {
133+ background-color : # cccccc ;
134+ cursor : not-allowed;
135+ }
136+
122137.nav-button .submit {
123138 background-color : # 28a745 ;
124139}
169184
170185.form-checkbox {
171186 margin-top : 10px ;
172- }
187+ }
Original file line number Diff line number Diff line change 5454 font-weight : bold;
5555 margin : 20px ;
5656 box-sizing : border-box;
57+ position : relative;
5758}
5859
5960.custom-step-number-badge .completed ,
6263 color : white;
6364}
6465
66+ .custom-step-number-badge .completed ::after {
67+ content : '✓' ;
68+ font-size : 18px ;
69+ color : white;
70+ position : absolute;
71+ top : 50% ;
72+ left : 50% ;
73+ transform : translate (-50% , -50% );
74+ }
75+
6576.custom-step-header-text {
6677 font-size : 16px ;
6778 line-height : 1.2 ;
You can’t perform that action at this time.
0 commit comments