[wp-trac] [WordPress Trac] #18556: Toolbar dropdowns when dragging items

WordPress Trac noreply at wordpress.org
Wed Aug 25 00:03:00 UTC 2021


#18556: Toolbar dropdowns when dragging items
-------------------------+-------------------------------------------------
 Reporter:  chexee       |       Owner:  drecodeam
     Type:  defect       |      Status:  accepted
  (bug)                  |
 Priority:  normal       |   Milestone:  5.9
Component:  Toolbar      |     Version:  3.2.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  ui, javascript, css,
  needs-testing          |  administration
-------------------------+-------------------------------------------------
Changes (by sabernhardt):

 * keywords:  has-patch needs-refresh => has-patch needs-testing
 * milestone:  Future Release => 5.9


Comment:

 [attachment:"18556.6.diff"] helps when dragging Menu items and metaboxes
 (in the block editor, Classic Editor, Classic Widgets and Dashboard). The
 block editor (posts or widgets) already prevents opening the menus when
 dragging blocks.

 Changes:
 - The side admin selectors needed to be more specific to avoid hiding the
 "current" submenus (which show directly under their parent).
 - I used the existing `hidden` class, available in the admin, instead of
 adding a new class in the CSS.
 - The toolbar's About dropdown still needed a CSS adjustment to override
 `display:block` on the secondary list.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/18556#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list