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

feat(Dropdown): add support for centered dropdown menus #6490

Merged
merged 1 commit into from Nov 17, 2022

Conversation

kyletsang
Copy link
Member

Closes #6477

I thought about putting a new option center in the align prop as that seems more intuitive, but it might get confusing because upstream bootstrap doesn't have support for responsive menu centering. These classes are also placed on the Dropdown component instead of the DropdownMenu where the align prop is shared...

Copy link
Member

@jquense jquense left a comment

Choose a reason for hiding this comment

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

LGTM, I think it's a bit weird upstream doesn't just use the popper placements for this sort of thing but maybe it's related to additional styling?

Copy link
Collaborator

@golota60 golota60 left a comment

Choose a reason for hiding this comment

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

lgtm - this makes the align prop a little bit awkward to use but i can't see how to address that

@kyletsang kyletsang merged commit 500ee94 into master Nov 17, 2022
@kyletsang kyletsang deleted the dropdown-center branch November 17, 2022 17:22
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.

Support dropdown-center
3 participants