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

Configure adaptive positioning for small screens #3354

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ritikpal1122
Copy link

feat(popover): improve responsive positioning behavior

  • Add collision detection and boundary constraints
  • Configure adaptive positioning for small screens
  • Implement fallback positions when space is limited
  • Add padding and sticky behavior for better UX

Whart I've fixed in this PR

Changes

  • Added collision detection using avoidCollisions prop
  • Set document.body as collision boundary
  • Configured adaptive positioning with fallback positions
  • Added 10px collision padding for better spacing
  • Implemented sticky behavior for smooth transitions

Testing

  • Tested on small screens
  • Verified tooltip repositioning when space is limited
  • Confirmed proper behavior on all viewport sizes

@ritikpal1122
Copy link
Author

hi @chaance can you please check this out

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.

1 participant