Make WordPress Core


Ignore:
Timestamp:
05/29/2015 01:56:39 PM (11 years ago)
Author:
ocean90
Message:

Customizer: Replace accordion behavior of sections with a slide-in navigation.

This allows users to focus on the contents of the active section more easily and separating the navigation from the content/controls in the Customizer.

props valendesigns, celloexpressions.
see #31336.

File:
1 edited

Legend:

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

    r31541 r32649  
    316316    protected function render_content() {
    317317        ?>
    318         <li class="panel-meta accordion-section control-section<?php if ( empty( $this->description ) ) { echo ' cannot-expand'; } ?>">
    319             <div class="accordion-section-title" tabindex="0">
     318        <li class="panel-meta customize-info accordion-section<?php if ( empty( $this->description ) ) { echo ' cannot-expand'; } ?>">
     319            <button class="customize-panel-back" tabindex="-1"><span class="screen-reader-text"><?php _e( 'Back' ); ?></span></button>
     320            <div class="accordion-section-title">
    320321                <span class="preview-notice"><?php
    321322                    /* translators: %s is the site/panel title in the Customizer */
    322323                    echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title">' . esc_html( $this->title ) . '</strong>' );
    323324                ?></span>
     325                <button class="customize-help-toggle dashicons dashicons-editor-help" tabindex="0" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button>
    324326            </div>
    325327            <?php if ( ! empty( $this->description ) ) : ?>
    326                 <div class="accordion-section-content description">
     328                <div class="description customize-panel-description">
    327329                    <?php echo $this->description; ?>
    328330                </div>
Note: See TracChangeset for help on using the changeset viewer.