Make WordPress Core

Changeset 54177


Ignore:
Timestamp:
09/15/2022 12:27:02 PM (18 months ago)
Author:
audrasjb
Message:

Help/About: Remove .hidden class when the Help Tab panel is displayed.

It is obviously more logical and semantic to remove the hidden class when the panel is displayed. Plus, it prevents from weird behavior occurring when plugins also use the hidden class to hide stuff.

Props grabmedia, SergeyBiryukov, helen, sabernhardt, costdev, audrasjb.
Fixes #27697.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/admin/common.js

    r53911 r54177  
    618618         */
    619619        panel.slideDown( 'fast', function() {
    620             panel.trigger( 'focus' );
     620            panel.removeClass( 'hidden' ).trigger( 'focus' );
    621621            button.addClass( 'screen-meta-active' ).attr( 'aria-expanded', true );
    622622        });
     
    647647            $('.screen-meta-toggle').css('visibility', '');
    648648            panel.parent().hide();
     649            panel.addClass( 'hidden' );
    649650        });
    650651
Note: See TracChangeset for help on using the changeset viewer.