#49322 closed defect (bug) (fixed)
Twenty Twenty: Submenu items disappear underneath the Cover block
Reported by: | kjellr | Owned by: | ianbelanger |
---|---|---|---|
Milestone: | 5.4.2 | Priority: | normal |
Severity: | normal | Version: | 5.3 |
Component: | Bundled Theme | Keywords: | has-patch fixed-major |
Focuses: | css | Cc: |
Description
When a site has many submenu items, they may appear below the color overlay of a Cover block, rendering them inaccessible via hover:
GIF: https://cloudup.com/cJoqjhPu9dV
To reproduce:
- Add a menu item with many submenu items (I had to use at least 12).
- Begin a post or page with a wide or full-width Cover block.
- View that post on desktop, and attempt to hover over the bottommost submenu items.
They'll appear behind the cover block's color overlay layer, and the submenu will close when you attempt to hover over them.
Tested with WP 5.3.2, Gutenberg 7.3, and Twenty Twenty 1.1
Attachments (1)
Change History (8)
#2
@
5 years ago
- Focuses css added
- Keywords has-patch needs-testing added
- Milestone changed from Awaiting Review to 5.5
- Version changed from 5.3.2 to 5.3
#3
in reply to:
↑ 1
@
5 years ago
Replying to kjellr:
I've added 49322.patch to fix this issue. It adjusts the
z-index
of#site-header
from1
to2
. Thez-index
of the cover block's overlay is1
, so that's enough to fix the issue. Adjusting thez-index
of any items below#site-header
didn't have any positive effect, and making this change doesn't seem to mess with anything else that relies onz-index
(like the search box for instance).
Tested and works for me :) Thanks @kjellr
#4
@
5 years ago
- Owner set to ianbelanger
- Status changed from new to reviewing
Reviewing for commit.
I've added 49322.patch to fix this issue. It adjusts the
z-index
of#site-header
from1
to2
. Thez-index
of the cover block's overlay is1
, so that's enough to fix the issue. Adjusting thez-index
of any items below#site-header
didn't have any positive effect, and making this change doesn't seem to mess with anything else that relies onz-index
(like the search box for instance).Before:
After: