mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
Customize: Add rightward-facing back button to Themes section header to improve navigation (since the section slides in from the left).
Also serves to prototype for an upward-facing arrow in this location for a Publish Settings section. Props melchoyce, westonruter. See #39896, #40278, #21666. git-svn-id: https://develop.svn.wordpress.org/trunk@41368 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1164,6 +1164,15 @@
|
||||
attachEvents: function () {
|
||||
var section = this;
|
||||
|
||||
// Expand/Collapse accordion sections on click.
|
||||
section.container.find( '.customize-section-back' ).on( 'click keydown', function( event ) {
|
||||
if ( api.utils.isKeydownButNotEnterEvent( event ) ) {
|
||||
return;
|
||||
}
|
||||
event.preventDefault(); // Keep this AFTER the key filter above
|
||||
section.collapse();
|
||||
});
|
||||
|
||||
// Expand/Collapse section/panel.
|
||||
section.container.find( '.change-theme, .customize-theme' ).on( 'click keydown', function( event ) {
|
||||
if ( api.utils.isKeydownButNotEnterEvent( event ) ) {
|
||||
|
||||
Reference in New Issue
Block a user