styles: 优化部分表单组件报错边框颜色 (#6799)

Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
qkiroc 2023-05-06 16:09:58 +08:00 committed by GitHub
parent 784d3530bd
commit 288d7bcc79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 0 deletions

View File

@ -44,6 +44,11 @@
box-shadow: var(--Form-input-boxShadow);
}
.is-error > & {
border-color: var(--Form-input-onError-borderColor);
background: var(--Form-input-onError-bg);
}
&.is-disabled {
background: var(--ColorPicker-onDisabled-bg);
color: var(--ColorPicker-onDisabled-color);

View File

@ -64,6 +64,11 @@
}
}
.is-error > & {
border-color: var(--Form-input-onError-borderColor);
background: var(--Form-input-onError-bg);
}
.#{$ns}DateRangePicker-input {
border: none;
border-bottom: var(--DateRangePicker-activeCursor-height) solid transparent;

View File

@ -88,6 +88,11 @@
}
}
.is-error > & {
border-color: var(--Form-input-onError-borderColor);
background: var(--Form-input-onError-bg);
}
&.is-disabled {
background: var(--inputDate-disabled-bg-color);
border-width: var(--inputDate-disabled-top-border-width)

View File

@ -246,6 +246,11 @@
color: var(--Number-handler-onDisabled-color);
}
.is-error > & {
border-color: var(--Form-input-onError-borderColor);
background: var(--Form-input-onError-bg);
}
&-disabled {
border-color: var(--Form-input-onDisabled-borderColor);
.#{$ns}Number-input {

View File

@ -104,6 +104,10 @@
}
}
}
&.is-error > .#{$ns}ResultBox {
border-color: var(--Form-input-onError-borderColor);
background: var(--Form-input-onError-bg);
}
}
.#{$ns}TagControl-popover {