Skip to content

Commit 18fbf1a

Browse files
committed
Add word-break property to screen reader only classes.
1 parent 3a265ea commit 18fbf1a

File tree

14 files changed

+33
-7
lines changed

14 files changed

+33
-7
lines changed

src/wp-admin/css/common.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@
129129
padding: 0;
130130
position: absolute;
131131
width: 1px;
132-
word-wrap: normal !important; /* many screen reader and browser combinations announce broken words as they would appear visually */
132+
/* many screen reader and browser combinations announce broken words as they would appear visually */
133+
word-wrap: normal !important;
134+
word-break: normal !important;
133135
}
134136

135137
.button .screen-reader-text {

src/wp-admin/css/install.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,9 @@ body.language-chooser {
356356
padding: 0;
357357
position: absolute;
358358
width: 1px;
359+
/* many screen reader and browser combinations announce broken words as they would appear visually */
359360
word-wrap: normal !important;
361+
word-break: normal !important;
360362
}
361363

362364
.spinner {

src/wp-admin/css/login.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,9 @@ body.interim-login {
413413
padding: 0;
414414
position: absolute;
415415
width: 1px;
416-
word-wrap: normal !important; /* many screen reader and browser combinations announce broken words as they would appear visually */
416+
/* many screen reader and browser combinations announce broken words as they would appear visually */
417+
word-wrap: normal !important;
418+
word-break: normal !important;
417419
}
418420

419421
/* Hide the Edge "reveal password" native button */

src/wp-content/themes/twentynineteen/sass/modules/_accessibility.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
padding: 0;
99
position: absolute !important;
1010
width: 1px;
11-
word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
11+
/* many screen reader and browser combinations announce broken words as they would appear visually */
12+
word-wrap: normal !important;
13+
word-break: normal !important;
1214

1315
&:focus {
1416
background-color: $color__background-screen;

src/wp-content/themes/twentyseventeen/style.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,9 @@ template {
311311
overflow: hidden;
312312
position: absolute !important;
313313
width: 1px;
314-
word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
314+
/* many screen reader and browser combinations announce broken words as they would appear visually */
315+
word-wrap: normal !important;
316+
word-break: normal !important;
315317
}
316318

317319
.screen-reader-text:focus {

src/wp-content/themes/twentysixteen/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,6 +1291,7 @@ a:active {
12911291
width: 1px;
12921292
/* many screen reader and browser combinations announce broken words as they would appear visually */
12931293
word-wrap: normal !important;
1294+
word-break: normal !important;
12941295
}
12951296

12961297
/* must have higher specificity than alternative color schemes inline styles */

src/wp-content/themes/twentytwenty/style.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,9 @@ path {
185185
padding: 0;
186186
position: absolute !important;
187187
width: 1px;
188+
/* many screen reader and browser combinations announce broken words as they would appear visually */
188189
word-wrap: normal !important;
189-
word-break: normal;
190+
word-break: normal !important;
190191
}
191192

192193
.screen-reader-text:focus {

src/wp-content/themes/twentytwentyone/assets/sass/07-utilities/a11y.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
padding: 0;
88
position: absolute !important;
99
width: 1px;
10+
/* many screen reader and browser combinations announce broken words as they would appear visually */
1011
word-wrap: normal !important;
11-
word-break: normal;
12+
word-break: normal !important;
1213
}
1314

1415
.skip-link:focus {

src/wp-content/themes/twentytwentyone/style.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5528,8 +5528,9 @@ h1.page-title {
55285528
padding: 0;
55295529
position: absolute !important;
55305530
width: 1px;
5531+
/* many screen reader and browser combinations announce broken words as they would appear visually */
55315532
word-wrap: normal !important;
5532-
word-break: normal;
5533+
word-break: normal !important;
55335534
}
55345535

55355536
.skip-link:focus {

src/wp-includes/css/admin-bar.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,9 @@ html:lang(he-il) .rtl #wpadminbar * {
708708
padding: 0;
709709
position: absolute;
710710
width: 1px;
711+
/* many screen reader and browser combinations announce broken words as they would appear visually */
711712
word-wrap: normal !important;
713+
word-break: normal !important;
712714
}
713715

714716
#wpadminbar .screen-reader-shortcut {
@@ -800,7 +802,9 @@ html:lang(he-il) .rtl #wpadminbar * {
800802
padding: 0;
801803
position: absolute;
802804
width: 1px;
805+
/* many screen reader and browser combinations announce broken words as they would appear visually */
803806
word-wrap: normal !important;
807+
word-break: normal !important;
804808
}
805809

806810
#wpadminbar .menupop li:hover > .ab-sub-wrapper,

0 commit comments

Comments
 (0)