mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-10 11:03:19 +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 => {
|
export const genPanelStyle = (token: SharedPickerToken): CSSObject => {
|
||||||
const {
|
const {
|
||||||
componentCls,
|
componentCls,
|
||||||
|
pickerCellCls,
|
||||||
pickerCellInnerCls,
|
pickerCellInnerCls,
|
||||||
pickerYearMonthCellWidth,
|
pickerYearMonthCellWidth,
|
||||||
pickerControlIconSize,
|
pickerControlIconSize,
|
||||||
@ -746,10 +747,17 @@ export const genPanelStyle = (token: SharedPickerToken): CSSObject => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
[`&:hover td,
|
[`&:hover td`]: {
|
||||||
&-range-start td,
|
'&:before': {
|
||||||
|
background: controlItemBgHover,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
[`&-range-start td,
|
||||||
&-range-end td,
|
&-range-end td,
|
||||||
&-selected td`]: {
|
&-selected td`]: {
|
||||||
|
// Rise priority to override hover style
|
||||||
|
[`&${pickerCellCls}`]: {
|
||||||
'&:before': {
|
'&:before': {
|
||||||
background: colorPrimary,
|
background: colorPrimary,
|
||||||
},
|
},
|
||||||
@ -762,6 +770,7 @@ export const genPanelStyle = (token: SharedPickerToken): CSSObject => {
|
|||||||
color: colorTextLightSolid,
|
color: colorTextLightSolid,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
|
||||||
[`&-range-hover td:before`]: {
|
[`&-range-hover td:before`]: {
|
||||||
background: controlItemBgActive,
|
background: controlItemBgActive,
|
||||||
|
Loading…
Reference in New Issue
Block a user