Make WordPress Core

Ticket #35947: 35947.4.patch

File 35947.4.patch, 1.9 KB (added by westonruter, 7 years ago)

Cherry-pick patch from #34344

  • src/wp-admin/css/customize-controls.css

    diff --git src/wp-admin/css/customize-controls.css src/wp-admin/css/customize-controls.css
    index 7824c82..b672be3 100644
    h3.customize-section-title { 
    428428.in-sub-panel #customize-theme-controls > ul > .accordion-section {
    429429        left: -300px;
    430430        width: 300px;
     431        height: 0;
    431432}
    432433
    433434.in-sub-panel #customize-theme-controls .accordion-section.current-panel {
    434435        width: 100%;
     436        height: auto;
    435437}
    436438
    437439#customize-theme-controls .control-section.current-panel {
    h3.customize-section-title { 
    459461        overflow-y: hidden;
    460462}
    461463
     464.wp-full-overlay.section-open #customize-theme-controls > ul > .accordion-section {
     465        height: 0;
     466}
     467
     468.wp-full-overlay.section-open #customize-theme-controls > ul > .accordion-section.open {
     469        height: auto;
     470}
     471
    462472.wp-full-overlay.section-open .wp-full-overlay-sidebar-content .accordion-section.open {
    463473        visibility: visible;
    464474}
  • src/wp-admin/js/customize-controls.js

    diff --git src/wp-admin/js/customize-controls.js src/wp-admin/js/customize-controls.js
    index a22aa76..7421e29 100644
     
    13671367                                        accordionSection.addClass( 'current-panel' );
    13681368                                        overlay.addClass( 'in-sub-panel' );
    13691369                                        container.scrollTop( 0 );
    1370                                         if ( args.completeCallback ) {
    1371                                                 args.completeCallback();
    1372                                         }
     1370                                        topPanel.attr( 'tabindex', '-1' );
     1371                                        backBtn.attr( 'tabindex', '0' );
     1372                                        panel._recalculateTopMargin();
     1373                                        _.delay( function() {
     1374                                                backBtn.focus();
     1375                                                if ( args.completeCallback ) {
     1376                                                        args.completeCallback();
     1377                                                }
     1378                                        }, 180 );
    13731379                                } );
    1374                                 topPanel.attr( 'tabindex', '-1' );
    1375                                 backBtn.attr( 'tabindex', '0' );
    1376                                 backBtn.focus();
    1377                                 panel._recalculateTopMargin();
    13781380                        } else {
    13791381                                siblings.removeClass( 'open' );
    13801382                                accordionSection.removeClass( 'current-panel' );