fix(Step): z-index issue in 2.x (#9004)

This commit is contained in:
neverland 2021-07-10 10:26:22 +08:00 committed by GitHub
parent bda035fa60
commit fef606c269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,24 +94,11 @@
border-bottom-width: 1px; border-bottom-width: 1px;
} }
&:first-child {
&::before {
position: absolute;
top: 0;
left: -15px;
z-index: 1;
width: 1px;
height: 20px;
background-color: @white;
content: '';
}
}
.van-step__circle-container { .van-step__circle-container {
position: absolute; position: absolute;
top: 19px; top: 19px;
left: -15px; left: -15px;
z-index: 2; z-index: 1;
font-size: @step-icon-size; font-size: @step-icon-size;
line-height: 1; line-height: 1;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);