Skip to content

Set z-index of nav menus to avoid overlap with other content #99

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

Merged
merged 1 commit into from
Aug 2, 2021

Conversation

jhrcek
Copy link
Contributor

@jhrcek jhrcek commented Aug 1, 2021

This fixes the following issue with the nav menus illustrated by a screenshot:

Screenshot from 2021-08-01 10-11-50

To see the issue in the currently deployed version, go to e.g. https://haskell.foundation/donations/, open the "News and Info" menu and try to open the "Resources" or "FAQ" from that menu. Notice it's almost impossible, because the menu is closed if you happen to hover over the corner thingy that ovelaps with the menu.

The fix is to set the z-index of the menus to 10 (which I'm doing here by using the z-10 css class from tailwind).

After this PR the menu is rendered in front of other content and doesn't have the "undesired closing" issue
Screenshot from 2021-08-01 10-35-09

@jhrcek jhrcek changed the title Improve nav menus Set z-index of nav menus to avoid overlap with other content Aug 1, 2021
@tomjaguarpaw
Copy link
Contributor

Lovely!

Copy link
Contributor

@elland elland left a comment

Choose a reason for hiding this comment

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

Nice!

@myShoggoth myShoggoth merged commit 81880a6 into haskellfoundation:master Aug 2, 2021
@myShoggoth
Copy link
Contributor

Thank you!

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.

4 participants