mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
fix: Week style (#40801)
This commit is contained in:
parent
da441ae35f
commit
4bb102474e
@ -289,6 +289,7 @@ const genPickerCellInnerStyle = (token: SharedPickerToken): CSSObject => {
|
||||
export const genPanelStyle = (token: SharedPickerToken): CSSObject => {
|
||||
const {
|
||||
componentCls,
|
||||
pickerCellCls,
|
||||
pickerCellInnerCls,
|
||||
pickerYearMonthCellWidth,
|
||||
pickerControlIconSize,
|
||||
@ -746,20 +747,28 @@ export const genPanelStyle = (token: SharedPickerToken): CSSObject => {
|
||||
},
|
||||
},
|
||||
|
||||
[`&:hover td,
|
||||
&-range-start td,
|
||||
[`&:hover td`]: {
|
||||
'&:before': {
|
||||
background: controlItemBgHover,
|
||||
},
|
||||
},
|
||||
|
||||
[`&-range-start td,
|
||||
&-range-end td,
|
||||
&-selected td`]: {
|
||||
'&:before': {
|
||||
background: colorPrimary,
|
||||
},
|
||||
// Rise priority to override hover style
|
||||
[`&${pickerCellCls}`]: {
|
||||
'&:before': {
|
||||
background: colorPrimary,
|
||||
},
|
||||
|
||||
[`&${componentCls}-cell-week`]: {
|
||||
color: new TinyColor(colorTextLightSolid).setAlpha(0.5).toHexString(),
|
||||
},
|
||||
[`&${componentCls}-cell-week`]: {
|
||||
color: new TinyColor(colorTextLightSolid).setAlpha(0.5).toHexString(),
|
||||
},
|
||||
|
||||
[pickerCellInnerCls]: {
|
||||
color: colorTextLightSolid,
|
||||
[pickerCellInnerCls]: {
|
||||
color: colorTextLightSolid,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user