+
+ // We have to wait for the animations to finish
+ setTimeout(function(){
+ container.removeClass( 'opening' );
+ }, 150);
+
+ // If there's an element with an aria-expanded attribute, assume it's a toggle control and toggle the aria-expanded value.
+ if ( sectionToggleControl ) {
+ sectionToggleControl.attr( 'aria-expanded', String( sectionToggleControl.attr( 'aria-expanded' ) === 'false' ) );
+ }