Make WordPress Core

Changeset 32946


Ignore:
Timestamp:
06/25/2015 07:32:36 PM (7 years ago)
Author:
wonderboymusic
Message:

Admin menu: improve accessibility when collapsed.

Props afercia.
Fixes #32346.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/admin-menu.css

    r32268 r32946  
    319319}
    320320
    321 #adminmenu .wp-submenu-head,
     321#adminmenu .wp-submenu-head {
     322    display: none;
     323}
     324
    322325.folded #adminmenu .wp-menu-name {
    323     display: none;
     326    position: absolute;
     327    left: -999px;
    324328}
    325329
     
    679683
    680684    .auto-fold #adminmenu .wp-menu-name {
    681         display: none;
     685        position: absolute;
     686        left: -999px;
    682687    }
    683688
     
    798803    /* Restore the menu names */
    799804    .auto-fold #adminmenu .wp-menu-name {
    800         display: block;
     805        position: static;
    801806        margin-left: 35px;
    802807    }
  • trunk/src/wp-admin/menu-header.php

    r32642 r32946  
    158158        if ( ! empty( $submenu_items ) ) {
    159159            echo "\n\t<ul class='wp-submenu wp-submenu-wrap'>";
    160             echo "<li class='wp-submenu-head'>{$item[0]}</li>";
     160            echo "<li class='wp-submenu-head' aria-hidden='true'>{$item[0]}</li>";
    161161
    162162            $first = true;
Note: See TracChangeset for help on using the changeset viewer.