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.


git-svn-id: https://develop.svn.wordpress.org/trunk@54177 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras 2022-09-15 12:27:02 +00:00
parent 98cfa29f8d
commit 9b6a3ecfcf

View File

@ -617,7 +617,7 @@ window.screenMeta = {
* @return {void}
*/
panel.slideDown( 'fast', function() {
panel.trigger( 'focus' );
panel.removeClass( 'hidden' ).trigger( 'focus' );
button.addClass( 'screen-meta-active' ).attr( 'aria-expanded', true );
});
@ -646,6 +646,7 @@ window.screenMeta = {
button.removeClass( 'screen-meta-active' ).attr( 'aria-expanded', false );
$('.screen-meta-toggle').css('visibility', '');
panel.parent().hide();
panel.addClass( 'hidden' );
});
$document.trigger( 'screen:options:close' );