Making WordPress.org


Ignore:
Timestamp:
05/27/2019 04:46:54 AM (7 years ago)
Author:
tellyworth
Message:

Plugin directory theme: Improve responsive design of tabs.

This replaces the pure CSS tabs with a JS implementation that makes changes more manageable, and deals with some accessibility and responsiveness issues.

Props ck3lee
See #2776

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/build.jsx

    r5454 r8880  
    3232
    3333        container.replaceChild( temp.querySelector( '#screenshots' ), document.getElementById( 'screenshots' ) );
     34
     35        // On page load, we want to show or hide <Screenshots /> after it is rendered, based on the #hash in url.
     36        if ( typeof window.showUrlHashTargetTab === 'function' ) {
     37                window.showUrlHashTargetTab();
     38        }
    3439}
Note: See TracChangeset for help on using the changeset viewer.