WordPress.org

Make WordPress Core

Changeset 39153


Ignore:
Timestamp:
11/07/2016 09:46:43 PM (3 years ago)
Author:
westonruter
Message:

Customize: Fix loading of theme screenshots in themes section and remove erroneous borders on hover.

Fixes regressions introduced in [38648].

Props delawski, mckernanin.
See #34391.
Fixes #38222.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/customize-controls.css

    r39149 r39153  
    191191    background-color: #fff;
    192192    border-bottom: 1px solid #eee;
     193    border-left: 4px solid #fff;
     194}
     195
     196#customize-controls #customize-theme-controls .customize-themes-panel .accordion-section-title {
     197    color: #555;
     198    background-color: #fff;
    193199    border-left: 4px solid #fff;
    194200}
     
    11901196}
    11911197
     1198#customize-controls .customize-themes-panel .accordion-section-title:hover,
    11921199#customize-controls .customize-themes-panel .accordion-section-title {
    11931200    margin: 15px -8px;
  • trunk/src/wp-admin/js/customize-controls.js

    r39149 r39153  
    12681268                overlay.addClass( 'in-themes-panel' );
    12691269                section.addClass( 'current-panel' );
     1270                _.delay( panel.renderScreenshots, 10 ); // Wait for the controls
     1271                panel.$customizeSidebar.on( 'scroll.customize-themes-section', _.throttle( panel.renderScreenshots, 300 ) );
    12701272
    12711273            } else if ( ! expanded && section.hasClass( 'current-panel' ) ) {
     
    12841286                overlay.removeClass( 'in-themes-panel' );
    12851287                section.removeClass( 'current-panel' );
     1288                panel.$customizeSidebar.off( 'scroll.customize-themes-section' );
    12861289            }
    12871290        },
Note: See TracChangeset for help on using the changeset viewer.