WordPress.org

Make WordPress Core

Changeset 39207


Ignore:
Timestamp:
11/13/2016 12:25:49 AM (4 years ago)
Author:
davidakennedy
Message:

Twenty Seventeen: Update screen-reader-text to reset word-wrap

This resets the property to normal where needed and, to be safe, uses !important. It avoids screen readers reading out words ignoring spaces between words in some cases.

Props afercia.

Fixes #38764.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/style.css

    r39176 r39207  
    307307    position: absolute !important;
    308308    width: 1px;
     309    word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
    309310}
    310311
     
    15081509#page {
    15091510    position: relative;
    1510     -ms-word-wrap: break-word;
    15111511    word-wrap: break-word;
    15121512}
     
    25162516
    25172517.widget_text {
    2518     -ms-word-wrap: break-word;
    25192518    word-wrap: break-word;
    25202519}
     
    26442643    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.3s ease-in-out;
    26452644    width: auto;
    2646     -ms-word-wrap: break-word;
    26472645    word-wrap: break-word;
    26482646    z-index: 0;
Note: See TracChangeset for help on using the changeset viewer.