mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
fix: disabled DataPicker should not have status style (#40608)
This commit is contained in:
parent
331074243a
commit
9d4216e565
@ -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…
Reference in New Issue
Block a user