feat: form customizing variables (#15954)

* fix: added styling form input background-color

* feat: added '@form-warning-input-bg' variable

* feat: added '@form-error-input-bg' variable
This commit is contained in:
Salavat Gizatov 2019-04-12 06:52:00 +03:00 committed by zombieJ
parent b809e95f79
commit 9f9f81ed7a
3 changed files with 5 additions and 2 deletions

View File

@ -456,7 +456,7 @@ form {
}
.has-warning {
.form-control-validation(@warning-color; @warning-color;);
.form-control-validation(@warning-color; @warning-color; @form-warning-input-bg;);
&.has-feedback .@{form-prefix-cls}-item-children-icon {
color: @warning-color;
@ -505,7 +505,7 @@ form {
}
.has-error {
.form-control-validation(@error-color; @error-color;);
.form-control-validation(@error-color; @error-color; @form-error-input-bg;);
&.has-feedback .@{form-prefix-cls}-item-children-icon {
color: @error-color;

View File

@ -30,6 +30,7 @@
.@{ant-prefix}-input {
&,
&:hover {
background-color: @background-color;
border-color: @border-color;
}

View File

@ -280,10 +280,12 @@
// ---
@label-required-color: @highlight-color;
@label-color: @heading-color;
@form-warning-input-bg: @input-bg;
@form-item-margin-bottom: 24px;
@form-item-trailing-colon: true;
@form-vertical-label-padding: 0 0 8px;
@form-vertical-label-margin: 0;
@form-error-input-bg: @input-bg;
// Input
// ---