|
1530 | 1530 | } |
1531 | 1531 |
|
1532 | 1532 | // Expand/Collapse accordion sections on click. |
1533 | | - section.container.find( '.accordion-section-title button, .customize-section-back' ).on( 'click keydown', function( event ) { |
| 1533 | + section.container.find( '.accordion-section-title button, .customize-section-back, .accordion-section-title[tabindex]' ).on( 'click keydown', function( event ) { |
1534 | 1534 | if ( api.utils.isKeydownButNotEnterEvent( event ) ) { |
1535 | 1535 | return; |
1536 | 1536 | } |
|
1605 | 1605 | content = section.contentContainer, |
1606 | 1606 | overlay = section.headContainer.closest( '.wp-full-overlay' ), |
1607 | 1607 | backBtn = content.find( '.customize-section-back' ), |
1608 | | - sectionTitle = section.headContainer.find( '.accordion-section-title button' ).first(), |
| 1608 | + sectionTitle = section.headContainer.find( '.accordion-section-title button, .accordion-section-title[tabindex]' ).first(), |
1609 | 1609 | expand, panel; |
1610 | 1610 |
|
1611 | 1611 | if ( expanded && ! content.hasClass( 'open' ) ) { |
|
2694 | 2694 | container = section.headContainer.closest( '.wp-full-overlay-sidebar-content' ), |
2695 | 2695 | content = section.contentContainer, |
2696 | 2696 | backBtn = content.find( '.customize-section-back' ), |
2697 | | - sectionTitle = section.headContainer.find( '.accordion-section-title button' ).first(), |
| 2697 | + sectionTitle = section.headContainer.find( '.accordion-section-title button, .accordion-section-title[tabindex]' ).first(), |
2698 | 2698 | body = $( document.body ), |
2699 | 2699 | expand, panel; |
2700 | 2700 |
|
|
2833 | 2833 | var meta, panel = this; |
2834 | 2834 |
|
2835 | 2835 | // Expand/Collapse accordion sections on click. |
2836 | | - panel.headContainer.find( '.accordion-section-title button' ).on( 'click keydown', function( event ) { |
| 2836 | + panel.headContainer.find( '.accordion-section-title button, .accordion-section-title[tabindex]' ).on( 'click keydown', function( event ) { |
2837 | 2837 | if ( api.utils.isKeydownButNotEnterEvent( event ) ) { |
2838 | 2838 | return; |
2839 | 2839 | } |
|
2937 | 2937 | accordionSection = panel.contentContainer, |
2938 | 2938 | overlay = accordionSection.closest( '.wp-full-overlay' ), |
2939 | 2939 | container = accordionSection.closest( '.wp-full-overlay-sidebar-content' ), |
2940 | | - topPanel = panel.headContainer.find( '.accordion-section-title button' ), |
| 2940 | + topPanel = panel.headContainer.find( '.accordion-section-title button, .accordion-section-title[tabindex]' ), |
2941 | 2941 | backBtn = accordionSection.find( '.customize-panel-back' ), |
2942 | 2942 | childSections = panel.sections(), |
2943 | 2943 | skipTransition; |
|
0 commit comments