Make WordPress Core


Ignore:
Timestamp:
07/08/2014 08:18:30 PM (12 years ago)
Author:
helen
Message:

Customizer panels:

  • Close all accordion sections when going in and out of panels.
  • Fix panel positioning when top-level Customizer controls are scrolled down.
  • Keyboard accessibility: only focus on visible elements and transfer between them as needed when navigating around panels.

props celloexpressions. see #27406.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-section.php

    r28927 r29035  
    241241        <li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="control-section control-panel accordion-section">
    242242            <h3 class="accordion-section-title" tabindex="0"><?php echo esc_html( $this->title ); ?></h3>
    243             <span class="control-panel-back" tabindex="0"><span class="screen-reader-text">Back to Customize</span></span>
     243            <span class="control-panel-back" tabindex="-1"><span class="screen-reader-text">Back to Customize</span></span>
    244244            <ul class="accordion-sub-container control-panel-content">
    245245                <li class="accordion-section control-section<?php if ( empty( $this->description ) ) echo ' cannot-expand'; ?>">
Note: See TracChangeset for help on using the changeset viewer.