Skip to content

fix(component-library): remove datepicker positioning override - #1305

Open
Sy Dinh (sydinh) wants to merge 1 commit into
mainfrom
fix/datepicker-remove-floating-ui-position-override
Open

fix(component-library): remove datepicker positioning override#1305
Sy Dinh (sydinh) wants to merge 1 commit into
mainfrom
fix/datepicker-remove-floating-ui-position-override

Conversation

@sydinh

Copy link
Copy Markdown
Contributor

What?

Remove the obsolete left: 0 !important override from mt-datepicker.

Why?

The rule overrides the coordinates calculated by Floating UI, causing the datepicker menu to be positioned incorrectly.

How?

Removed the left: 0 !important declaration from .dp--menu-wrapper and kept Floating UI responsible for positioning.

Testing?

  • Verified the diff with git diff --check.
  • Manually verify the datepicker menu positioning in Storybook.

Screenshots (optional)

Not applicable.

Anything Else?

N/A

@vercel

vercel Bot commented Jul 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
meteor-docs Ready Ready Preview Jul 30, 2026 3:05pm
meteor-storybook Ready Ready Preview Jul 30, 2026 3:05pm

Request Review

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes mt-datepicker menu positioning by removing a CSS override that interfered with Floating UI’s computed coordinates, letting Floating UI fully control placement.

Changes:

  • Removed the obsolete left: 0 !important from .dp--menu-wrapper to prevent overriding Floating UI positioning.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 554 to 555
filter: drop-shadow(0px 1px 3px #0000000f);
filter: drop-shadow(0px 1px 3px #0000001a);
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