[wp-trac] [WordPress Trac] #35186: Put the Customizer "back" button next to the "Close" button

WordPress Trac noreply at wordpress.org
Mon Dec 21 22:26:14 UTC 2015


#35186: Put the Customizer "back" button next to the "Close" button
-------------------------------------+-------------------------------------
 Reporter:  DragonFlyEye             |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  4.5
Component:  Customize                |     Version:  4.4
 Severity:  normal                   |  Resolution:
 Keywords:  has-screenshots needs-   |     Focuses:  ui, javascript,
  patch                              |  administration
-------------------------------------+-------------------------------------
Changes (by westonruter):

 * keywords:  has-screenshots => has-screenshots needs-patch
 * focuses:  ui, administration => ui, javascript, administration
 * milestone:  Awaiting Review => 4.5


Comment:

 I agree. When inside of a panel or section, the back button could slide
 out from under the Close button to reveal itself. This button would change
 the current expanded section, or it there is no expanded section, it
 should collapse the current expanded panel. For example, the logic that
 clicking the button invokes could include:


 {{{#!js
 var wasCollapsed = false;
 api.section.each( function( section ) {
     if ( section.expanded() ) {
         wasCollapsed = true;
         section.collapse();
     }
 } );
 if ( ! wasCollapsed ) {
     api.panel.each( function( panel ) {
         if ( panel.expanded() ) {
             panel.collapse();
         }
     } );
 }
 }}}

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


More information about the wp-trac mailing list