Skip to content

Commit 20f744a

Browse files
authored
fix: date picker height issue (#2570)
* fix: date picker with fixed height * chore: added changeset * chore: update changelog
1 parent ce33adc commit 20f744a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/polite-crews-accept.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@razorpay/blade': patch
3+
---
4+
5+
fix(blade): datepicker height change issue

packages/blade/src/components/DatePicker/DatePicker.web.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,11 @@ const DatePicker = <Type extends DateSelectionType = 'single'>({
225225
flexDirection="column"
226226
gap="spacing.5"
227227
padding={{ m: 'spacing.6', s: 'spacing.0' }}
228+
/* We only need to set height for day picker, for year picker
229+
or month it should be auto. */
230+
height={_picker === 'day' ? '447px' : 'auto'}
228231
backgroundColor="surface.background.gray.intense"
232+
justifyContent="space-between"
229233
>
230234
<Calendar
231235
{...props}

0 commit comments

Comments
 (0)