mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +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',
|
||||
transition: `color ${motionDurationMid}`,
|
||||
fontSize: 'inherit',
|
||||
display: 'inline-flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
},
|
||||
|
||||
'> button': {
|
||||
@ -275,10 +278,9 @@ export const genPanelStyle = (token: SharedPickerToken): CSSObject => {
|
||||
fontWeight: fontWeightStrong,
|
||||
lineHeight: unit(textHeight),
|
||||
|
||||
button: {
|
||||
'> button': {
|
||||
color: 'inherit',
|
||||
fontWeight: 'inherit',
|
||||
verticalAlign: 'top',
|
||||
|
||||
'&:not(:first-child)': {
|
||||
marginInlineStart: paddingXS,
|
||||
@ -296,7 +298,6 @@ export const genPanelStyle = (token: SharedPickerToken): CSSObject => {
|
||||
&-super-prev-icon,
|
||||
&-super-next-icon`]: {
|
||||
position: 'relative',
|
||||
display: 'inline-block',
|
||||
width: pickerControlIconSize,
|
||||
height: pickerControlIconSize,
|
||||
|
||||
@ -304,7 +305,6 @@ export const genPanelStyle = (token: SharedPickerToken): CSSObject => {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
insetInlineStart: 0,
|
||||
display: 'inline-block',
|
||||
width: pickerControlIconSize,
|
||||
height: pickerControlIconSize,
|
||||
border: `0 solid currentcolor`,
|
||||
|
Loading…
Reference in New Issue
Block a user