Make WordPress Core

Changeset 30314


Ignore:
Timestamp:
11/12/2014 10:54:32 PM (10 years ago)
Author:
iandstewart
Message:

Twenty Fifteen: adding context to page links for screenreaders.

Props afercia, fixes #30174.

Location:
trunk/src/wp-content/themes/twentyfifteen
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/content-link.php

    r30072 r30314  
    3838                'link_before' => '<span>',
    3939                'link_after'  => '</span>',
     40                'pagelink'    => '<span class="screen-reader-text">' . esc_html__( 'Page', 'twentyfifteen' ) . ' </span>%',
     41                'separator'   => '<span class="screen-reader-text">, </span>',
    4042            ) );
    4143        ?>
  • trunk/src/wp-content/themes/twentyfifteen/content-page.php

    r30233 r30314  
    2424                'link_before' => '<span>',
    2525                'link_after'  => '</span>',
     26                'pagelink'    => '<span class="screen-reader-text">' . esc_html__( 'Page', 'twentyfifteen' ) . ' </span>%',
     27                'separator'   => '<span class="screen-reader-text">, </span>',
    2628            ) );
    2729        ?>
  • trunk/src/wp-content/themes/twentyfifteen/content.php

    r30233 r30314  
    3737                'link_before' => '<span>',
    3838                'link_after'  => '</span>',
     39                'pagelink'    => '<span class="screen-reader-text">' . esc_html__( 'Page', 'twentyfifteen' ) . ' </span>%',
     40                'separator'   => '<span class="screen-reader-text">, </span>',
    3941            ) );
    4042        ?>
  • trunk/src/wp-content/themes/twentyfifteen/image.php

    r30216 r30314  
    5454                                'link_before' => '<span>',
    5555                                'link_after'  => '</span>',
     56                                'pagelink'    => '<span class="screen-reader-text">' . esc_html__( 'Page', 'twentyfifteen' ) . ' </span>%',
     57                                'separator'   => '<span class="screen-reader-text">, </span>',
    5658                            ) );
    5759                        ?>
  • trunk/src/wp-content/themes/twentyfifteen/style.css

    r30303 r30314  
    20362036    height: 2em;
    20372037    line-height: 2;
    2038     margin: 0 1px 2px 0;
     2038    margin: 0 6px 2px 0;
    20392039    text-align: center;
    20402040    width: 2em;
Note: See TracChangeset for help on using the changeset viewer.