[wp-trac] [WordPress Trac] #42201: Admin Sidebar Text length Issue

WordPress Trac noreply at wordpress.org
Wed Oct 16 23:01:29 UTC 2019


#42201: Admin Sidebar Text length Issue
----------------------------------------------+--------------------------
 Reporter:  jagirbaheshwp                     |       Owner:  johnbillion
     Type:  defect (bug)                      |      Status:  reopened
 Priority:  normal                            |   Milestone:  5.3
Component:  Administration                    |     Version:  4.8.2
 Severity:  normal                            |  Resolution:
 Keywords:  has-screenshots has-patch commit  |     Focuses:  ui
----------------------------------------------+--------------------------
Changes (by johnjamesjacoby):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 r46555 broke the use of `:after` on `#adminmenu .wp-submenu a`.

 Specifically, changing from `display: block;` to `display: flex;`.

 I help build or maintain several plugins that add styling to a pseudo
 element `after` some specific anchors. This styling is applied
 specifically based on user feedback for plugins with large add-on
 ecosystems that add many sub-menus to a single top-level menu item.

 {{{
 /* Secondary Separators */
 #adminmenu ul > li:not(:last-child) a[href^="admin.php?page=sugar-
 calendar"]::after,
 #adminmenu ul > li:not(:last-child) a[href^="post-
 new.php?post_type=sc_event"]::after
 {
         display: block;
         border-bottom: 1px solid rgba(255,255,255,0.2);
         height: 14px;
         margin: 0 -13px;
         content: '';
 }
 }}}

 With these anchors now displaying as flexible instead of blocks, the
 `:after` pseudo elements flex after them, even when `display: block;` is
 applied to them.

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


More information about the wp-trac mailing list