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.

Built from https://develop.svn.wordpress.org/trunk@39207


git-svn-id: http://core.svn.wordpress.org/trunk@39147 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
David A. Kennedy 2016-11-13 00:26:30 +00:00
parent 41cf4e1656
commit 1b5ffcd3f0
2 changed files with 2 additions and 4 deletions

View File

@ -306,6 +306,7 @@ template {
overflow: hidden;
position: absolute !important;
width: 1px;
word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}
.screen-reader-text:focus {
@ -1507,7 +1508,6 @@ body {
#page {
position: relative;
-ms-word-wrap: break-word;
word-wrap: break-word;
}
@ -2515,7 +2515,6 @@ h2.widget-title {
/* Text widget */
.widget_text {
-ms-word-wrap: break-word;
word-wrap: break-word;
}
@ -2643,7 +2642,6 @@ h2.widget-title {
-webkit-transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.3s ease-in-out;
transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.3s ease-in-out;
width: auto;
-ms-word-wrap: break-word;
word-wrap: break-word;
z-index: 0;
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.7-beta3-39206';
$wp_version = '4.7-beta3-39207';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.