mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 09:26:06 +08:00
style: fix DatePicker header text align (#49332)
* style: fix DatePicker header text align * chore: remove unused style * Update components/date-picker/style/panel.ts Signed-off-by: afc163 <afc163@gmail.com> --------- Signed-off-by: afc163 <afc163@gmail.com>
This commit is contained in:
parent
e6fabc80d9
commit
ca3d4c0e5e
@ -254,6 +254,9 @@ export const genPanelStyle = (token: SharedPickerToken): CSSObject => {
|
|||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
transition: `color ${motionDurationMid}`,
|
transition: `color ${motionDurationMid}`,
|
||||||
fontSize: 'inherit',
|
fontSize: 'inherit',
|
||||||
|
display: 'inline-flex',
|
||||||
|
alignItems: 'center',
|
||||||
|
justifyContent: 'center',
|
||||||
},
|
},
|
||||||
|
|
||||||
'> button': {
|
'> button': {
|
||||||
@ -275,10 +278,9 @@ export const genPanelStyle = (token: SharedPickerToken): CSSObject => {
|
|||||||
fontWeight: fontWeightStrong,
|
fontWeight: fontWeightStrong,
|
||||||
lineHeight: unit(textHeight),
|
lineHeight: unit(textHeight),
|
||||||
|
|
||||||
button: {
|
'> button': {
|
||||||
color: 'inherit',
|
color: 'inherit',
|
||||||
fontWeight: 'inherit',
|
fontWeight: 'inherit',
|
||||||
verticalAlign: 'top',
|
|
||||||
|
|
||||||
'&:not(:first-child)': {
|
'&:not(:first-child)': {
|
||||||
marginInlineStart: paddingXS,
|
marginInlineStart: paddingXS,
|
||||||
@ -296,7 +298,6 @@ export const genPanelStyle = (token: SharedPickerToken): CSSObject => {
|
|||||||
&-super-prev-icon,
|
&-super-prev-icon,
|
||||||
&-super-next-icon`]: {
|
&-super-next-icon`]: {
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
display: 'inline-block',
|
|
||||||
width: pickerControlIconSize,
|
width: pickerControlIconSize,
|
||||||
height: pickerControlIconSize,
|
height: pickerControlIconSize,
|
||||||
|
|
||||||
@ -304,7 +305,6 @@ export const genPanelStyle = (token: SharedPickerToken): CSSObject => {
|
|||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
top: 0,
|
top: 0,
|
||||||
insetInlineStart: 0,
|
insetInlineStart: 0,
|
||||||
display: 'inline-block',
|
|
||||||
width: pickerControlIconSize,
|
width: pickerControlIconSize,
|
||||||
height: pickerControlIconSize,
|
height: pickerControlIconSize,
|
||||||
border: `0 solid currentcolor`,
|
border: `0 solid currentcolor`,
|
||||||
|
Loading…
Reference in New Issue
Block a user