generatepress icon indicating copy to clipboard operation
generatepress copied to clipboard

Two sub-menus on top of each other

Open leohsiang opened this issue 4 years ago • 1 comments

Reference: https://generatepress.com/forums/topic/two-sub-menues-on-top-of-each-other/#post-1664001

leohsiang avatar Mar 15 '21 01:03 leohsiang

I believe this happens when you focus on a menu item with a sub-menu. Right now, sfHover class gets added to parent items when they become focused. This shows the sub-menu (which is what makes the navigation accessible using the tab key).

So, if you focus a menu item and then go and hover on another parent item, both sub-menus will be shown.

Not sure there's a way around this without rethinking how we show sub-menus on focus. This issue does come up quite a bit under different circumstances.

tomusborne avatar Jun 23 '21 17:06 tomusborne