WordPress.org

Making WordPress.org

Changeset 6437


Ignore:
Timestamp:
01/25/2018 09:54:23 PM (3 years ago)
Author:
obenland
Message:

Trac: Update with latest wporg header changes.

See [6313].

Location:
sites/trunk/trac.wordpress.org/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/trac.wordpress.org/templates/wporg-head.html

    r5905 r6437  
    2424    </style>
    2525    <link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,400,300,600&amp;subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic' rel='stylesheet' type='text/css' />
    26     <link rel="stylesheet" href="https://s.w.org/style/wp4.css?39" />
     26    <link rel="stylesheet" href="https://s.w.org/style/wp4.css?70" />
    2727    <!--[if lte IE 8]>
    2828    <style type="text/css">
     
    3131    <![endif]-->
    3232    <script type="text/javascript">
    33     var toggleMenu = function(){
    34         var m = document.getElementById('wporg-header-menu'),
    35             c = m.className;
    36             m.className = c.match( ' active' ) ? c.replace( ' active', '' ) : c + ' active';
    37     }
     33        var toggleMenu = function() {
     34            var menu    = document.getElementById( 'wporg-header-menu' ),
     35                toggle  = document.getElementById( 'mobile-menu-button' ),
     36                classes = menu.className,
     37                toggled = classes.match( ' active' );
     38
     39            menu.className = toggled ? classes.replace( ' active', '' ) : classes + ' active';
     40            toggle.setAttribute( 'aria-expanded', ! toggled );
     41        };
    3842    </script>
    3943
  • sites/trunk/trac.wordpress.org/templates/wporg-header.html

    r3137 r6437  
    66<div id="wporg-header">
    77    <div class="wrapper">
    8         <a id="mobile-menu-button" class="" href="#" onclick="toggleMenu();"></a>
     8        <button id="mobile-menu-button" onclick="toggleMenu();" aria-expanded="false"><span class="screen-reader-text">Toggle Menu</span></button>
    99
    1010        <h1><a href="https://wordpress.org">WordPress.org</a></h1>
     
    1313            <form action="https://wordpress.org/search/do-search.php" method="get">
    1414                <label for="global-search" class="screen-reader-text">Search WordPress.org for:</label>
    15                 <input id="global-search" class="text" name="search" type="text" value="" maxlength="150" placeholder="Search WordPress.org" />
    16                 <input type="submit" class="button" value="" />
     15                <input id="global-search" class="text" name="search" type="text" value="" maxlength="150" placeholder="Search WordPress.org" />
     16                <button type="submit" class="button"><span class="screen-reader-text">Submit</span></button>
    1717            </form>
    1818        </div>
Note: See TracChangeset for help on using the changeset viewer.