Skip to content

Commit

Permalink
fix: arrow style
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Jun 11, 2024
1 parent 97802b2 commit 97745d2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions components/date-picker/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,15 +304,19 @@ const genPickerStyle: GenerateStyle<PickerToken> = (token) => {
display: 'none',
},

[`&${componentCls}-dropdown-placement-bottomLeft`]: {
[`&${componentCls}-dropdown-placement-bottomLeft,
&${componentCls}-dropdown-placement-bottomRight
`]: {
[`${componentCls}-range-arrow`]: {
top: 0,
display: 'block',
transform: 'translateY(-100%)',
},
},

[`&${componentCls}-dropdown-placement-topLeft`]: {
[`&${componentCls}-dropdown-placement-topLeft,
&${componentCls}-dropdown-placement-topRight`]: {
[`${componentCls}-range-arrow`]: {
bottom: 0,
display: 'block',
Expand Down

0 comments on commit 97745d2

Please sign in to comment.