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(DropdownMenu): use Bootstrap default offsets #5662

Merged
merged 1 commit into from Feb 25, 2021

Conversation

kyletsang
Copy link
Member

@kyletsang kyletsang commented Feb 18, 2021

This fixes a margin issue with dropdowns in Bootstrap 5.

Bootstrap uses a default offset of [0, 2] for Popper:
https://github.com/twbs/bootstrap/blob/5c32767e0e0dbac2d934bcdee03719a65d3f1187/js/src/dropdown.js#L75

Also looks like we don't need usePopperMarginModifiers anymore since upstream no longer uses margins in the styles. The popper margin warning isn't there anymore.

@kyletsang kyletsang added this to In Progress in v5 support via automation Feb 18, 2021
@jquense jquense merged commit f29ad48 into bs5-dev Feb 25, 2021
v5 support automation moved this from In Progress to Done Feb 25, 2021
@jquense jquense deleted the fix/dropdown-offset branch February 25, 2021 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
v5 support
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants