[wp-trac] [WordPress Trac] #31336: Customizer: separate navigation from options UI for better UX by removing accordion behavior

WordPress Trac noreply at wordpress.org
Thu May 14 07:39:15 UTC 2015


#31336: Customizer: separate navigation from options UI for better UX by removing
accordion behavior
------------------------------+---------------------------------
 Reporter:  celloexpressions  |       Owner:  celloexpressions
     Type:  enhancement       |      Status:  assigned
 Priority:  normal            |   Milestone:  4.3
Component:  Customize         |     Version:  4.0
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:  ui, administration
------------------------------+---------------------------------

Comment (by westonruter):

 Replying to [comment:26 celloexpressions]:
 > Also, it looks like expanding widget controls now jumps out of the
 sidebar section - I'm having trouble locating the exact issue, but it
 looks related to the fact that much of the widget control expansion API is
 reused from the section expanded/collapsed state API. Any ideas there
 @westonruter?

 [https://github.com/xwp/wordpress-
 develop/blob/59eb437a352a66a521ddb52d341dc4b946309909/src/wp-admin/js
 /customize-widgets.js#L1189 This function] is the culprit:

 {{{#!js
 /**
  * Expand the accordion section containing a control
  */
 expandControlSection: function() {
         api.Control.prototype.expand.call( this );
 },
 }}}

 This method gets called whenever the control is expanded. So the changes
 you've made to `Section.onChangeExpanded` need to be modified to do
 nothing if the section is already expanded.

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


More information about the wp-trac mailing list