Make WordPress Core


Ignore:
Timestamp:
06/02/2011 07:30:07 PM (15 years ago)
Author:
iandstewart
Message:

Twenty Eleven: accessibility improvements and minor style fixes for galleries; See #17524

  • Improved color contrast for light and dark color schemes
  • Skip link for skipping directly to sidebar content
  • Skip links visible on :focus
  • Using a more semantic, general class name of .assistive-text instead of .section-heading and .screen-reader-text
  • Focus styles for password inputs (and a minor style fix)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/header.php

    r17959 r18117  
    111111
    112112            <nav id="access" role="navigation">
    113                 <h1 class="section-heading"><?php _e( 'Main menu', 'twentyeleven' ); ?></h1>
     113                <h1 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h1>
    114114                <?php /*  Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
    115                 <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyeleven' ); ?>"><?php _e( 'Skip to content', 'twentyeleven' ); ?></a></div>
     115                <div class="skip-link"><a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to primary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to primary content', 'twentyeleven' ); ?></a></div>
     116                <div class="skip-link"><a class="assistive-text" href="#secondary" title="<?php esc_attr_e( 'Skip to secondary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to secondary content', 'twentyeleven' ); ?></a></div>
    116117                <?php /* Our navigation menu.  If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
    117118                <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
Note: See TracChangeset for help on using the changeset viewer.