From 1b5ffcd3f06f73dbc3bcc3a399fb3a604e5a4158 Mon Sep 17 00:00:00 2001 From: "David A. Kennedy" Date: Sun, 13 Nov 2016 00:26:30 +0000 Subject: [PATCH] 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 --- wp-content/themes/twentyseventeen/style.css | 4 +--- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/wp-content/themes/twentyseventeen/style.css b/wp-content/themes/twentyseventeen/style.css index 05dec3bae7..4d527e658a 100644 --- a/wp-content/themes/twentyseventeen/style.css +++ b/wp-content/themes/twentyseventeen/style.css @@ -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; } diff --git a/wp-includes/version.php b/wp-includes/version.php index ebeaed952b..abf6436a43 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.