Skip to content

Commit 4f4de35

Browse files
authored
Merge pull request #77 from mxdi9i7/shanyin/fix-stepper-margin
fix:stepper margin
2 parents 0d2e778 + 5b2fb90 commit 4f4de35

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

src/components/Stepper/index.scss

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,13 @@
2121
}
2222

2323
$baseClass: 'vant-stepper';
24-
.step-container {
24+
.vant-stepper-container {
2525
display: flex;
2626
justify-content: center;
2727
align-items: center;
2828
margin: 0px;
2929
padding: 0px;
30-
img {
31-
width: 12px;
32-
height: auto;
33-
}
30+
3431
input {
3532
margin: 0px 2px;
3633
border-radius: 5px;
@@ -98,7 +95,6 @@ button.#{$baseClass} {
9895
display: flex;
9996
justify-content: center;
10097
align-items: center;
101-
margin: auto;
10298

10399
&__disabled {
104100
cursor: not-allowed;
@@ -107,8 +103,8 @@ button.#{$baseClass} {
107103
&__theme {
108104
border-radius: 50%;
109105
outline: none;
110-
width: 22px;
111-
height: 22px;
106+
width: 25px;
107+
height: 25px;
112108
background-color: red;
113109
border-color: white;
114110
.minus::before {
@@ -151,8 +147,8 @@ input.#{$baseClass} {
151147
}
152148
&__theme {
153149
border-radius: 50%;
154-
width: 32px;
155-
height: 22px;
150+
width: 25px;
151+
height: 25px;
156152
background-color: white;
157153
}
158154
}
@@ -177,7 +173,6 @@ input.#{$baseClass} {
177173
justify-content: center;
178174
align-items: center;
179175
border-radius: 10px;
180-
margin: auto;
181176
opacity: 0;
182177
}
183178
.load {

src/components/Stepper/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export default function Stepper({
219219
}
220220
}, [disableInput]);
221221
return (
222-
<div className='step-container'>
222+
<div className='vant-stepper-container'>
223223
<button
224224
id='minus'
225225
onClick={handleDecrement}

0 commit comments

Comments
 (0)