Make WordPress Core

Changeset 59041


Ignore:
Timestamp:
09/17/2024 11:26:03 PM (4 weeks ago)
Author:
joedolson
Message:

Accessibility: Add border around menus and submenus in high contrast mode.

Add outlines and borders to mark the boundaries between the admin navigation menu and content and around adminbar submenus that are visible when Windows High Contrast Mode is enabled. This clarifies the page structure and makes high contrast mode easier to use.

Props wildworks, hbhalodia, sabernhardt, joedolson, rcreators.
Fixes #61616.

Location:
trunk/src
Files:
2 edited

Legend:

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

    r54165 r59041  
    1212    bottom: -120px;
    1313    z-index: 1; /* positive z-index to avoid elastic scrolling woes in Safari */
     14
     15    /* Only visible in Windows High Contrast mode */
     16    outline: 1px solid transparent;
    1417}
    1518
     
    206209    min-width: 160px;
    207210    width: auto;
    208     border-left: 5px solid transparent;
     211    border: 1px solid transparent;
     212    border-left-width: 5px;
    209213}
    210214
     
    416420    font-size: 14px;
    417421    padding: 5px 4px 5px 11px;
    418     margin: -7px 0 4px -5px;
    419     border-width: 3px 0 3px 5px;
     422    margin: -8px -1px 4px -5px;
     423    border-width: 3px 1px 3px 5px;
    420424    border-style: solid;
    421425    border-color: transparent;
     
    582586
    583587    .auto-fold #adminmenu .wp-has-current-submenu .wp-submenu {
    584         min-width: 150px;
     588        min-width: 160px;
    585589        width: auto;
     590        border: 1px solid transparent;
     591        border-left-width: 5px;
    586592    }
    587593
     
    772778
    773779    #adminmenu .wp-not-current-submenu .wp-submenu,
    774     .folded #adminmenu .wp-has-current-submenu .wp-submenu {
    775         border-left: none;
     780    .folded #adminmenu .wp-has-current-submenu .wp-submenu,
     781    .auto-fold #adminmenu .wp-has-current-submenu .wp-submenu {
     782        border: none;
    776783    }
    777784
  • trunk/src/wp-includes/css/admin-bar.css

    r58567 r59041  
    9898    z-index: 99999;
    9999    background: #1d2327;
     100    /* Only visible in Windows High Contrast mode */
     101    outline: 1px solid transparent;
    100102}
    101103
     
    196198#wpadminbar li.hover > .ab-sub-wrapper {
    197199    display: block;
     200    /* Only visible in Windows High Contrast mode */
     201    outline: 1px solid transparent;
    198202}
    199203
     
    907911    #wpadminbar #wp-admin-bar-new-content .ab-icon:before {
    908912        top: 0;
    909         line-height: 1.33333333;
     913        line-height: 1.26;
    910914        height: 46px !important;
    911915        text-align: center;
Note: See TracChangeset for help on using the changeset viewer.