Skip to content

Commit

Permalink
fix: datePicker arrow out of bound (ant-design#47389)
Browse files Browse the repository at this point in the history
* fix: datePicker arrow out of bound

* chore: use logic prop
  • Loading branch information
zombieJ authored and tanzhenyun committed Mar 29, 2024
1 parent aa07a83 commit a9667c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion components/date-picker/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,14 @@ const genPickerStyle: GenerateStyle<PickerToken> = (token) => {
position: 'absolute',
zIndex: 1,
display: 'none',
marginInlineStart: token.calc(paddingInline).mul(1.5).equal(),
paddingInline: token.calc(paddingInline).mul(1.5).equal(),
boxSizing: 'content-box',
transition: `left ${motionDurationSlow} ease-out`,
...genRoundedArrow(token, colorBgElevated, boxShadowPopoverArrow),

'&:before': {
insetInlineStart: token.calc(paddingInline).mul(1.5).equal(),
},
},

[`${componentCls}-panel-container`]: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"rc-motion": "^2.9.0",
"rc-notification": "~5.3.0",
"rc-pagination": "~4.0.4",
"rc-picker": "~4.0.0-alpha.44",
"rc-picker": "~4.1.1",
"rc-progress": "~3.5.1",
"rc-rate": "~2.12.0",
"rc-resize-observer": "^1.4.0",
Expand Down

0 comments on commit a9667c2

Please sign in to comment.