Skip to content

Commit

Permalink
fix: cascader error color (#20347)
Browse files Browse the repository at this point in the history
* [fix] cascader error color

* fix: cascader error/warning color
  • Loading branch information
xrkffgg authored and afc163 committed Dec 19, 2019
1 parent f14f934 commit 38dab1f
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions components/form/style/index.less
Expand Up @@ -453,8 +453,13 @@ form {
}
}

.@{ant-prefix}-cascader-picker:focus .@{ant-prefix}-cascader-input {
.active(@warning-color);
.@{ant-prefix}-cascader-picker {
&:focus .@{ant-prefix}-cascader-input {
.active(@warning-color);
}
&:hover .@{ant-prefix}-cascader-input {
border-color: @warning-color;
}
}
}

Expand Down Expand Up @@ -527,8 +532,13 @@ form {
}
}

.@{ant-prefix}-cascader-picker:focus .@{ant-prefix}-cascader-input {
.active(@error-color);
.@{ant-prefix}-cascader-picker {
&:focus .@{ant-prefix}-cascader-input {
.active(@error-color);
}
&:hover .@{ant-prefix}-cascader-input {
border-color: @error-color;
}
}

// transfer
Expand Down

0 comments on commit 38dab1f

Please sign in to comment.