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

WordPress Trac noreply at wordpress.org
Sun May 31 19:11:18 UTC 2015


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

Comment (by celloexpressions):

 To avoid keyboard accessibility issues when sections are opened
 programatically, we need to move the tabindex and focusing parts of this
 code from section - attachEvents() into onChangeExpanded:
 {{{
 if ( section.expanded() ) {
         section.collapse();
         backBtn.attr( 'tabindex', '-1' );
         sectionTitle.attr( 'tabindex', '0' );
         sectionTitle.focus();
 } else {
         section.expand();
         sectionTitle.attr( 'tabindex', '-1' );
         backBtn.attr( 'tabindex', '0' );
         backBtn.focus();
 }
 }}}

 Currently can be seen in Menu Customizer when adding a new menu.

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


More information about the wp-trac mailing list