WordPress.org

Make WordPress Core

Changeset 34913


Ignore:
Timestamp:
10/07/2015 05:34:56 PM (5 years ago)
Author:
afercia
Message:

Bump H3 headings to H2 on the Network Admin > Sites > Edit Site screens.

The navigation tabs appear in an <h3> heading immediately following the main <h1> and need to have a proper hierarchy.
Also, fix the tabs focus style and introduce a new .nav-tab-small CSS class.

Fixes #34079.

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

Legend:

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

    r34893 r34913  
    19611961    background: #e4e4e4;
    19621962    color: #555;
     1963}
     1964
     1965.nav-tab,
     1966.nav-tab-small .nav-tab {
     1967    display: inline-block;
     1968    margin: -4px 4px -1px 0;
     1969    padding: 5px 14px;
    19631970    font-size: 12px;
    19641971    line-height: 16px;
    1965     display: inline-block;
    1966     padding: 4px 14px 6px;
    19671972    text-decoration: none;
    1968     margin: -4px 4px -1px 0;
    1969 }
    1970 
    1971 .nav-tab:hover {
     1973}
     1974
     1975.nav-tab:hover,
     1976.nav-tab:focus {
    19721977    background-color: #fff;
    19731978    color: #464646;
     
    19791984
    19801985.nav-tab-active,
    1981 .nav-tab-active:hover {
     1986.nav-tab-active:hover,
     1987.nav-tab-active:focus {
    19821988    border-bottom: 1px solid #f1f1f1;
    19831989    background: #f1f1f1;
     
    19962002h2 .nav-tab {
    19972003    padding: 6px 10px;
    1998     font-weight: bold;
     2004    font-weight: 600;
    19992005    font-size: 15px;
    20002006    line-height: 24px;
  • trunk/src/wp-admin/network/site-info.php

    r34265 r34913  
    139139<h1 id="edit-site"><?php echo $title; ?></h1>
    140140<p class="edit-site-actions"><a href="<?php echo esc_url( get_home_url( $id, '/' ) ); ?>"><?php _e( 'Visit' ); ?></a> | <a href="<?php echo esc_url( get_admin_url( $id ) ); ?>"><?php _e( 'Dashboard' ); ?></a></p>
    141 <h3 class="nav-tab-wrapper">
     141<h2 class="nav-tab-wrapper nav-tab-small">
    142142<?php
    143143$tabs = array(
     
    152152}
    153153?>
    154 </h3>
     154</h2>
    155155<?php
    156156if ( ! empty( $messages ) ) {
  • trunk/src/wp-admin/network/site-settings.php

    r34265 r34913  
    9696<h1 id="edit-site"><?php echo $title; ?></h1>
    9797<p class="edit-site-actions"><a href="<?php echo esc_url( get_home_url( $id, '/' ) ); ?>"><?php _e( 'Visit' ); ?></a> | <a href="<?php echo esc_url( get_admin_url( $id ) ); ?>"><?php _e( 'Dashboard' ); ?></a></p>
    98 <h3 class="nav-tab-wrapper">
     98<h2 class="nav-tab-wrapper nav-tab-small">
    9999<?php
    100100$tabs = array(
     
    109109}
    110110?>
    111 </h3>
     111</h2>
    112112<?php
    113113if ( ! empty( $messages ) ) {
  • trunk/src/wp-admin/network/site-themes.php

    r34891 r34913  
    150150<h1 id="edit-site"><?php echo $title; ?></h1>
    151151<p class="edit-site-actions"><a href="<?php echo esc_url( get_home_url( $id, '/' ) ); ?>"><?php _e( 'Visit' ); ?></a> | <a href="<?php echo esc_url( get_admin_url( $id ) ); ?>"><?php _e( 'Dashboard' ); ?></a></p>
    152 <h3 class="nav-tab-wrapper">
     152<h2 class="nav-tab-wrapper nav-tab-small">
    153153<?php
    154154$tabs = array(
     
    163163}
    164164?>
    165 </h3><?php
     165</h2><?php
    166166
    167167if ( isset( $_GET['enabled'] ) ) {
  • trunk/src/wp-admin/network/site-users.php

    r34891 r34913  
    205205<h1 id="edit-site"><?php echo $title; ?></h1>
    206206<p class="edit-site-actions"><a href="<?php echo esc_url( get_home_url( $id, '/' ) ); ?>"><?php _e( 'Visit' ); ?></a> | <a href="<?php echo esc_url( get_admin_url( $id ) ); ?>"><?php _e( 'Dashboard' ); ?></a></p>
    207 <h3 class="nav-tab-wrapper">
     207<h2 class="nav-tab-wrapper nav-tab-small">
    208208<?php
    209209$tabs = array(
     
    218218}
    219219?>
    220 </h3><?php
     220</h2><?php
    221221
    222222if ( isset($_GET['update']) ) :
Note: See TracChangeset for help on using the changeset viewer.