[wp-trac] [WordPress Trac] #37145: Admin submenu opens underneeth editor link tool
WordPress Trac
noreply at wordpress.org
Wed Aug 5 03:38:44 UTC 2020
#37145: Admin submenu opens underneeth editor link tool
-------------------------------------+-------------------------------------
Reporter: Stoffe1 | Owner: (none)
Type: defect (bug) | Status: assigned
Priority: low | Milestone: Future Release
Component: Administration | Version: 4.5.2
Severity: minor | Resolution:
Keywords: good-first-bug has- | Focuses: ui, css,
screenshots 2nd-opinion needs- | administration
patch |
-------------------------------------+-------------------------------------
Comment (by kevin940726):
@musicaljoeker Unfortunately, just updating `z-index` of `#adminmenuwrap`
to `1000001` will cause another side effect shown in the attachment above.
IMHO, I think this is currently not solvable, at it seems to be in a
bigger scope than we thought.
The [https://developer.mozilla.org/en-
US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
stacking context] of the page is roughly like this:
{{{
Body
#adminmenuwrap
.wp-submenu-wrap
.components-popover
}}}
So, we cannot make `.components-popover` show between `#adminmenuwrap` and
`.wp-submenu-wrap`. The only option I can see is to "portal" the
popovers/submenu to desired location and control their positioning with
JavaScript somehow, and that's a huge amount of work.
However, we might could get an update to the side bar after
[https://core.trac.wordpress.org/ticket/47012 47012] landed, and
hopefully, we could solve this issue once and for all.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37145#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list