[wp-trac] [WordPress Trac] #27403: Improve UI for linking areas of Customizer preview to corresponding controls (desktop and mobile)

WordPress Trac noreply at wordpress.org
Wed Oct 12 19:29:20 UTC 2016


#27403: Improve UI for linking areas of Customizer preview to corresponding
controls (desktop and mobile)
-------------------------+-----------------------------
 Reporter:  westonruter  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Customize    |     Version:  3.9
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  ui, javascript
-------------------------+-----------------------------

Comment (by sirbrillig):

 Thanks! Good advice; let me see how far I can get even with hacks.

 I figured out one way to get a menu to focus without changing much other
 code is to replace `nav_menu_instance[...]` with
 `nav_menu_locations[primary]`. I'm not sure if it's ideal, but it works
 for the time being.

 Still working on these issues:

 > - Also noticed a bug (actually noticed by @westonruter in the plugin
 repo https://github.com/Automattic/customize-direct-
 manipulation/issues/23#issuecomment-251543800 ) where partials do not call
 their ready() method when first added.
 > - Need to find/make an event that is triggered when a partial is removed
 so the associated icon can be removed.

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


More information about the wp-trac mailing list