Make WordPress Core

Changeset 35128


Ignore:
Timestamp:
10/13/2015 06:56:48 AM (9 years ago)
Author:
SergeyBiryukov
Message:

Accessibility: bump headings one level up in post meta boxes for a better headings hierarchy.

Props afercia, joedolson, wonderboymusic.
See #33557.

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

Legend:

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

    r34991 r35128  
    20492049}
    20502050
    2051 .metabox-holder h3 {
     2051.metabox-holder h3.hndle, /* Back-compat for pre-4.4 */
     2052.metabox-holder .stuffbox > h3, /* Back-compat for pre-4.4 */
     2053.metabox-holder h2 {
    20522054    font-size: 14px;
    20532055    padding: 8px 12px;
    20542056    margin: 0;
    20552057    line-height: 1.4;
     2058}
     2059
     2060/* Back-compat for nav-menus screen */
     2061.nav-menus-php .metabox-holder h3 {
     2062    padding: 10px 10px 11px 14px;
     2063    line-height: 21px;
    20562064}
    20572065
     
    34213429    }
    34223430
    3423     .metabox-holder h3 {
     3431    .metabox-holder h3.hndle, /* Back-compat for pre-4.4 */
     3432    .metabox-holder .stuffbox > h3, /* Back-compat for pre-4.4 */
     3433    .metabox-holder h2 {
    34243434        padding: 12px;
    34253435    }
  • trunk/src/wp-admin/css/dashboard.css

    r34011 r35128  
    948948}
    949949
    950 #dashboard_browser_nag.postbox.browser-insecure h3 {
     950#dashboard_browser_nag.postbox.browser-insecure h2 {
    951951    border-bottom-color: #cd5a5a;
    952952    color: #fff;
    953953}
    954954
    955 #dashboard_browser_nag.postbox h3 {
     955#dashboard_browser_nag.postbox h2 {
    956956    border-bottom-color: #f6e2ac;
    957957    background: transparent none;
     
    967967/* Make the browser nags easier to read with Open Sans */
    968968
    969 #dashboard_browser_nag h3.hndle {
     969#dashboard_browser_nag h2.hndle {
    970970    border: none;
    971971    font-weight: 600;
  • trunk/src/wp-admin/css/edit.css

    r34743 r35128  
    240240}
    241241
     242/* Back-compat for pre-4.4 */
    242243#category-adder h4 {
     244    margin: 0;
     245}
     246
     247.taxonomy-add-new {
     248    display: inline-block;
    243249    margin: 10px 0;
     250    font-weight: 600;
    244251}
    245252
     
    628635}
    629636
     637#poststuff h3.hndle, /* Back-compat for pre-4.4 */
     638#poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
    630639#poststuff h2 {
    631     margin-top: 20px;
    632     font-size: 1.5em;
    633     margin-bottom: 15px;
    634     padding: 0 0 3px;
    635     clear: left;
    636 }
    637 
    638 #poststuff h3 {
    639640    font-size: 14px;
    640641    padding: 8px 12px;
     
    13591360    }
    13601361
    1361     #poststuff h3 {
     1362    #poststuff h3.hndle, /* Back-compat for pre-4.4 */
     1363    #poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
     1364    #poststuff h2 {
    13621365        padding: 12px;
    13631366    }
  • trunk/src/wp-admin/includes/template-functions.php

    r35005 r35128  
    10071007                        echo '</button>';
    10081008                    }
    1009                     echo "<h3 class='hndle'><span>{$box['title']}</span></h3>\n";
     1009                    echo "<h2 class='hndle'><span>{$box['title']}</span></h2>\n";
    10101010                    echo '<div class="inside">' . "\n";
    10111011                    call_user_func($box['callback'], $object, $box);
Note: See TracChangeset for help on using the changeset viewer.