diff --git a/components/steps/demo/vertical-small.md b/components/steps/demo/vertical-small.md
index 2e836f3181..4d6f2d961f 100644
--- a/components/steps/demo/vertical-small.md
+++ b/components/steps/demo/vertical-small.md
@@ -26,5 +26,5 @@ const steps = [{
);
});
-ReactDOM.render({steps}, container);
+ReactDOM.render({steps}, container);
````
diff --git a/components/steps/demo/vertical.md b/components/steps/demo/vertical.md
index ef68b7a978..b840b50ef0 100644
--- a/components/steps/demo/vertical.md
+++ b/components/steps/demo/vertical.md
@@ -29,5 +29,5 @@ const steps = [{
);
});
-ReactDOM.render({steps}, container);
+ReactDOM.render({steps}, container);
````
diff --git a/style/components/steps.less b/style/components/steps.less
index af9acf49a3..d7f7abb9f7 100644
--- a/style/components/steps.less
+++ b/style/components/steps.less
@@ -69,8 +69,11 @@
color: @finish-icon-color;
}
}
- .@{steps-prefix-cls}-tail > i {
- background-color: @finish-tail-color;
+ .@{steps-prefix-cls}-tail > i:after {
+ width: 100%;
+ background: @finish-tail-color;
+ transition: all 0.4s ease;
+ opacity: 1;
}
.@{steps-prefix-cls}-title {
color: @finish-title-color;
@@ -169,7 +172,16 @@
height: 1px;
border-radius: 1px;
width: 100%;
- transition: background 0.3s ease;
+ position: relative;
+ &:after {
+ position: absolute;
+ content: '';
+ top: 0;
+ width: 0;
+ background: #e9e9e9;
+ height: 100%;
+ opacity: 0;
+ }
}
}
@@ -237,6 +249,16 @@
> i {
height: 100%;
width: 1px;
+ &:after {
+ height: 0;
+ width: 100%;
+ }
+ }
+ }
+
+ .@{steps-prefix-cls}-status-finish {
+ .@{steps-prefix-cls}-tail > i:after {
+ height: 100%;
}
}