Browse Source

fix: disabled DataPicker should not have status style (#40608)

pull/40623/head
MadCcc 2 years ago
committed by GitHub
parent
commit
9d4216e565
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      components/date-picker/style/index.ts

10
components/date-picker/style/index.ts

@ -869,14 +869,14 @@ const genPickerStatusStyle: GenerateStyle<PickerToken> = (token) => {
} = token;
return {
[componentCls]: {
[`&-status-error${componentCls}`]: {
[`${componentCls}:not(${componentCls}-disabled)`]: {
[`&${componentCls}-status-error`]: {
'&, &:not([disabled]):hover': {
backgroundColor: colorBgContainer,
borderColor: colorError,
},
'&-focused, &:focus': {
[`&${componentCls}-focused, &:focus`]: {
...genActiveStyle(
mergeToken<PickerToken>(token, {
inputBorderActiveColor: colorError,
@ -891,13 +891,13 @@ const genPickerStatusStyle: GenerateStyle<PickerToken> = (token) => {
},
},
[`&-status-warning${componentCls}`]: {
[`&${componentCls}-status-warning`]: {
'&, &:not([disabled]):hover': {
backgroundColor: colorBgContainer,
borderColor: colorWarning,
},
'&-focused, &:focus': {
[`&${componentCls}-focused, &:focus`]: {
...genActiveStyle(
mergeToken<PickerToken>(token, {
inputBorderActiveColor: colorWarning,

Loading…
Cancel
Save