Skip to content

Dropdown menu not entierly visible #2523

Answered by simonswiss
melokki asked this question in Help
Discussion options

You must be logged in to vote

Hey!

This happens because, as you mentioned in your answer, the parent element has a class of overflow-hidden.

A common way to prevent this from happening is to have your dropdown menu outside of the element with the overflow-hidden class.

So instead of having the dropdown menu inside that element, have it as a sibling element. Since you still want the element to be "absolutely" positioned in relation to the button, you'll need to have another wrapper with the relative position (which sounds like what you've done).

So that your dropdown does not cover your button, you might want to offset that absolutely positioned dropdown from the top with a top-{n} class.

If it's not possible in your c…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dhruva81
Comment options

Answer selected by simonswiss
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants