Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: date picker height issue #2570

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

tewarig
Copy link
Contributor

@tewarig tewarig commented Mar 12, 2025

Description

currently date picker have height issue. if month have 4 weeks , it will take less space. and if month have 6 week it will take more space. due to which height changes and it causes a layout shift.

we have decided fix its height .

[co-pilot generated summary] 🤖 -
This pull request includes a small change to the DatePicker component in packages/blade/src/components/DatePicker/DatePicker.web.tsx. The change ensures that the height is set only for the day picker, while the year and month pickers will have an automatic height. Additionally, it adds a justifyContent property to space the content appropriately.

Changes in DatePicker component:

  • Set height conditionally for day picker and auto for year/month pickers.
  • Added justifyContent property to DatePicker component.

Changes

Additional Information

Component Checklist

  • Update Component Status Page
  • Perform Manual Testing in Other Browsers
  • Add KitchenSink Story
  • Add Interaction Tests (if applicable)
  • Add changeset

Copy link

changeset-bot bot commented Mar 12, 2025

🦋 Changeset detected

Latest commit: 159bce5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@razorpay/blade Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Mar 12, 2025

✅ PR title follows Conventional Commits specification.

Copy link

codesandbox-ci bot commented Mar 12, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@rzpcibot
Copy link
Collaborator

rzpcibot commented Mar 12, 2025

Bundle Size Report

Updated Components
Status Component Base Size (kb) Current Size (kb) Diff
DatePicker 87.278 87.316 +0.038 KB

Generated by 🚫 dangerJS against 159bce5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants