[wp-trac] [WordPress Trac] #49322: Twenty Twenty: Submenu items disappear underneath the Cover block
WordPress Trac
noreply at wordpress.org
Sun Apr 21 15:45:06 UTC 2024
#49322: Twenty Twenty: Submenu items disappear underneath the Cover block
-----------------------------------+--------------------------
Reporter: kjellr | Owner: ianbelanger
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.4.2
Component: Bundled Theme | Version: 5.3
Severity: normal | Resolution: fixed
Keywords: has-patch fixed-major | Focuses: css
-----------------------------------+--------------------------
Comment (by mylinksdin):
The issue is likely caused by the z-index of the Cover block and the
submenu items conflicting. The Cover block may have a higher z-index,
causing it to appear above the submenu items. To fix this:
Find the CSS class of the Cover block (e.g., .wp-block-cover).
{{{
Add a custom CSS rule to increase its z-index:
css
Copy code
.wp-block-cover {
z-index: 1; /* Adjust this value as needed */
}
3. Modify Submenu CSS
To ensure that the submenu items appear above the Cover block overlay:
Find the CSS class of the submenu items.
Increase their z-index to a value higher than that of the Cover block:
css
Copy code
.your-submenu-class {
z-index: 2; /* Adjust this value accordingly */
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49322#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list