Making WordPress.org


Ignore:
Timestamp:
07/09/2016 03:57:32 PM (10 years ago)
Author:
drewapicture
Message:

developer.wordpress.org: Add a skip link for screen reader users to skip to the content area.

The skip link is only initially displayed to screen readers but can be exposed when directly focused, making it available to all keyboard users.

See #1819.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/global.scss

    r798 r3657  
    154154    margin: 0 auto;
    155155}
     156
     157/* Screen Reader Text */
     158.screen-reader-text {
     159    position: absolute !important;
     160    clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
     161    clip: rect(1px, 1px, 1px, 1px);
     162    overflow: hidden;
     163    height: 1px;
     164    width: 1px;
     165}
     166.screen-reader-text:hover,
     167.screen-reader-text:active,
     168.screen-reader-text:focus {
     169    background: #eee;
     170    border-bottom: 1px solid #ddd;
     171    color: #1982d1;
     172    clip: auto !important;
     173    font-size: 12px;
     174    height: auto;
     175    position: absolute;
     176    text-decoration: underline;
     177    top: 0;
     178    left: 7.6%;
     179    width: auto;
     180}
Note: See TracChangeset for help on using the changeset viewer.