Make WordPress Core

Ticket #37980: 37980.2.diff

File 37980.2.diff, 1.4 KB (added by celloexpressions, 8 years ago)

Restore cannot-expand CSS.

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

     
    365365        display: block;
    366366}
    367367
    368 .panel-meta.customize-info .accordion-section-title {
     368#customize-controls .panel-meta.customize-info .accordion-section-title {
    369369        margin-left: 48px;
     370        border-left: none;
    370371}
    371372
    372 #customize-controls .panel-meta.customize-info .accordion-section-title:hover {
     373#customize-controls .panel-meta.customize-info .accordion-section-title:hover,
     374#customize-controls .cannot-expand:hover .accordion-section-title {
    373375        background: #fff;
    374376        color: #555;
    375         border-left: none;
     377        border-left-color: #fff;
    376378}
    377379
    378380.customize-controls-close:focus,
  • src/wp-admin/js/customize-controls.js

     
    614614                attachEvents: function () {
    615615                        var section = this;
    616616
     617                        if ( section.container.hasClass( 'cannot-expand' ) ) {
     618                                return;
     619                        }
     620
    617621                        // Expand/Collapse accordion sections on click.
    618622                        section.container.find( '.accordion-section-title, .customize-section-back' ).on( 'click keydown', function( event ) {
    619623                                if ( api.utils.isKeydownButNotEnterEvent( event ) ) {