From 09a09419992fa5ed499e66cfe858e0abb959a9d1 Mon Sep 17 00:00:00 2001 From: "David A. Kennedy" Date: Sun, 13 Nov 2016 00:25:49 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@39207 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyseventeen/style.css | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/wp-content/themes/twentyseventeen/style.css b/src/wp-content/themes/twentyseventeen/style.css index 05dec3bae7..4d527e658a 100644 --- a/src/wp-content/themes/twentyseventeen/style.css +++ b/src/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; }