Skip to content

Commit 99d8742

Browse files
committed
General: A11y: Remove obsolete speak and aural CSS.
Remove instances of `speak: never` and `@media aural`, which are deprecated and/or non-standard CSS. These never had any broad browser support, but generated content alternatives do. See #40428. Props krokodok, audrasjb, joedolson. Fixes #63603. git-svn-id: https://develop.svn.wordpress.org/trunk@60885 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 5810c47 commit 99d8742

20 files changed

+90
-148
lines changed

src/js/_enqueues/vendor/thickbox/thickbox.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,8 @@
134134
}
135135

136136
.tb-close-icon:before {
137-
content: "\f158";
137+
content: "\f158" / '';
138138
font: normal 20px/29px dashicons;
139-
speak: never;
140139
-webkit-font-smoothing: antialiased;
141140
-moz-osx-font-smoothing: grayscale;
142141
}

src/wp-admin/css/admin-menu.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,13 +503,12 @@ ul#adminmenu > li.current > a.current:after {
503503
}
504504

505505
#collapse-button .collapse-button-icon:after {
506-
content: "\f148";
506+
content: "\f148" / '';
507507
display: block;
508508
position: relative;
509509
top: 7px;
510510
text-align: center;
511511
font: normal 20px/1 dashicons !important;
512-
speak: never;
513512
-webkit-font-smoothing: antialiased;
514513
-moz-osx-font-smoothing: grayscale;
515514
}

src/wp-admin/css/colors/_admin.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ span.wp-media-buttons-icon:before {
6868
/* Forms */
6969

7070
input[type=checkbox]:checked::before {
71-
content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27#{url-friendly-colour(variables.$form-checked)}%27%2F%3E%3C%2Fsvg%3E");
71+
content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27#{url-friendly-colour(variables.$form-checked)}%27%2F%3E%3C%2Fsvg%3E") / '';
7272
}
7373

7474
input[type=radio]:checked::before {

src/wp-admin/css/common.css

Lines changed: 21 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ code {
559559
}
560560

561561
.js-update-details-toggle[aria-expanded="true"] .dashicons::before {
562-
content: "\f142";
562+
content: "\f142" / '';
563563
}
564564

565565
.no-js .widefat thead .check-column input,
@@ -805,10 +805,9 @@ img.emoji {
805805
.notice-dismiss:before {
806806
background: none;
807807
color: #787c82;
808-
content: "\f153";
808+
content: "\f153" / '';
809809
display: block;
810810
font: normal 16px/20px dashicons;
811-
speak: never;
812811
height: 20px;
813812
text-align: center;
814813
width: 20px;
@@ -1133,7 +1132,7 @@ th.action-links {
11331132
}
11341133

11351134
.wp-filter .drawer-toggle:before {
1136-
content: "\f111";
1135+
content: "\f111" / '';
11371136
margin: 0 5px 0 0;
11381137
color: #646970;
11391138
font: normal 16px/1 dashicons;
@@ -1525,11 +1524,10 @@ div.error {
15251524

15261525
#plugin-information-footer .update-now:not(.button-disabled):before {
15271526
color: #d63638;
1528-
content: "\f463";
1527+
content: "\f463" / '';
15291528
display: inline-block;
15301529
font: normal 20px/1 dashicons;
15311530
margin: -3px 5px 0 -2px;
1532-
speak: never;
15331531
-webkit-font-smoothing: antialiased;
15341532
-moz-osx-font-smoothing: grayscale;
15351533
vertical-align: middle;
@@ -1588,7 +1586,7 @@ div.error {
15881586
.button.installing:before,
15891587
.button.activating-message:before {
15901588
color: #d63638;
1591-
content: "\f463";
1589+
content: "\f463" / '';
15921590
}
15931591

15941592
/* Spins the update icon. */
@@ -1624,13 +1622,13 @@ div.error {
16241622
.button.updated-message:before,
16251623
.button.activated-message:before {
16261624
color: #68de7c;
1627-
content: "\f147";
1625+
content: "\f147" / '';
16281626
}
16291627

16301628
/* Error icon. */
16311629
.update-message.notice-error p:before {
16321630
color: #d63638;
1633-
content: "\f534";
1631+
content: "\f534" / '';
16341632
}
16351633

16361634
.wrap .notice p:before,
@@ -1752,15 +1750,6 @@ p.auto-update-status {
17521750
transition-timing-function: ease-in-out;
17531751
}
17541752

1755-
@media aural {
1756-
.wrap .notice p:before,
1757-
.button.installing:before,
1758-
.button.installed:before,
1759-
.update-message p:before {
1760-
speak: never;
1761-
}
1762-
}
1763-
17641753

17651754
/* @todo: this does not need its own section anymore */
17661755
/*------------------------------------------------------------------------------
@@ -1848,9 +1837,8 @@ p.auto-update-status {
18481837

18491838
#screen-meta-links .show-settings:after {
18501839
right: 0;
1851-
content: "\f140";
1840+
content: "\f140" / '';
18521841
font: normal 20px/1 dashicons;
1853-
speak: never;
18541842
display: inline-block;
18551843
padding: 0 5px 0 0;
18561844
bottom: 2px;
@@ -1862,7 +1850,7 @@ p.auto-update-status {
18621850
}
18631851

18641852
#screen-meta-links .screen-meta-active:after {
1865-
content: "\f142";
1853+
content: "\f142" / '';
18661854
}
18671855

18681856
/* end screen options and help tabs */
@@ -2683,19 +2671,19 @@ div.star-holder .star-rating {
26832671
}
26842672

26852673
.star-rating .star-full:before {
2686-
content: "\f155";
2674+
content: "\f155" / '';
26872675
}
26882676

26892677
.star-rating .star-half:before {
2690-
content: "\f459";
2678+
content: "\f459" / '';
26912679
}
26922680

26932681
.rtl .star-rating .star-half {
26942682
transform: rotateY(180deg);
26952683
}
26962684

26972685
.star-rating .star-empty:before {
2698-
content: "\f154";
2686+
content: "\f154" / '';
26992687
}
27002688

27012689
div.action-links {
@@ -3186,9 +3174,8 @@ div.action-links {
31863174
}
31873175

31883176
.plugin-details-modal #TB_closeWindowButton:after {
3189-
content: "\f335";
3177+
content: "\f335" / '';
31903178
font: normal 32px/29px 'dashicons';
3191-
speak: never;
31923179
-webkit-font-smoothing: antialiased;
31933180
-moz-osx-font-smoothing: grayscale;
31943181
}
@@ -3213,10 +3200,9 @@ img {
32133200
.meta-box-sortables .postbox .order-lower-indicator::before,
32143201
.bulk-action-notice .toggle-indicator::before,
32153202
.privacy-text-box .toggle-indicator::before {
3216-
content: "\f142";
3203+
content: "\f142" / '';
32173204
display: inline-block;
32183205
font: normal 20px/1 dashicons;
3219-
speak: never;
32203206
-webkit-font-smoothing: antialiased;
32213207
-moz-osx-font-smoothing: grayscale;
32223208
text-decoration: none;
@@ -3226,16 +3212,16 @@ img {
32263212
.meta-box-sortables .postbox.closed .handlediv .toggle-indicator::before,
32273213
.bulk-action-notice .bulk-action-errors-collapsed .toggle-indicator::before,
32283214
.privacy-text-box.closed .toggle-indicator::before {
3229-
content: "\f140";
3215+
content: "\f140" / '';
32303216
}
32313217

32323218
.postbox .handle-order-higher .order-higher-indicator::before {
3233-
content: "\f343";
3219+
content: "\f343" / '';
32343220
color: inherit;
32353221
}
32363222

32373223
.postbox .handle-order-lower .order-lower-indicator::before {
3238-
content: "\f347";
3224+
content: "\f347" / '';
32393225
color: inherit;
32403226
}
32413227

@@ -3358,10 +3344,10 @@ img {
33583344
pointer-events: none;
33593345
}
33603346
[role="treeitem"][aria-expanded="false"] > .folder-label .icon:after {
3361-
content: "\f139";
3347+
content: "\f139" / '';
33623348
}
33633349
[role="treeitem"][aria-expanded="true"] > .folder-label .icon:after {
3364-
content: "\f140";
3350+
content: "\f140" / '';
33653351
}
33663352
[role="treeitem"] .folder-label {
33673353
display: block;
@@ -3576,9 +3562,8 @@ img {
35763562
.wp-customizer .control-section .accordion-section-title:after,
35773563
.wp-customizer .accordion-section-title:after,
35783564
.widget-top .widget-action .toggle-indicator:before {
3579-
content: "\f140";
3565+
content: "\f140" / '';
35803566
font: normal 20px/1 dashicons;
3581-
speak: never;
35823567
display: block;
35833568
-webkit-font-smoothing: antialiased;
35843569
-moz-osx-font-smoothing: grayscale;
@@ -3625,7 +3610,7 @@ img {
36253610
.nav-menus-php .menu-item-edit-active .item-edit:before,
36263611
.widget.open .widget-top .widget-action .toggle-indicator:before,
36273612
.widget.widget-in-question .widget-top .widget-action .toggle-indicator:before {
3628-
content: "\f142";
3613+
content: "\f142" / '';
36293614
}
36303615

36313616
/*!

src/wp-admin/css/customize-controls.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ h3.customize-section-title {
850850
transition:
851851
color .15s ease-in-out,
852852
border-color .15s ease-in-out,
853-
background .15s ease-in-out;
853+
background .15s ease-in-out;
854854
}
855855
}
856856

@@ -1359,7 +1359,6 @@ p.customize-section-description {
13591359
.customize-control .dropdown-arrow:after {
13601360
content: "\f140" / '';
13611361
font: normal 20px/1 dashicons;
1362-
speak: never;
13631362
display: block;
13641363
padding: 0;
13651364
text-indent: 0;

src/wp-admin/css/customize-nav-menus.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,9 @@
320320

321321
.wp-customizer .menu-item .item-edit .toggle-indicator:before,
322322
#available-menu-items .accordion-section-title .toggle-indicator:before {
323-
content: "\f140";
323+
content: "\f140" / '';
324324
display: block;
325325
padding: 1px 2px 1px 0;
326-
speak: never;
327326
border-radius: 50%;
328327
color: #787c82;
329328
font: normal 20px/1 dashicons;

src/wp-admin/css/dashboard.css

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@
338338
#dashboard_right_now .search-engines-info:before {
339339
color: #646970;
340340
font: normal 20px/1 dashicons;
341-
speak: never;
342341
display: inline-block;
343342
padding: 0 10px 0 0;
344343
position: relative;
@@ -353,55 +352,55 @@
353352
/* @deprecated 5.9.0 -- Icons removed from welcome panel. */
354353
.welcome-panel .welcome-write-blog:before,
355354
.welcome-panel .welcome-edit-page:before {
356-
content: "\f119";
355+
content: "\f119" / '';
357356
top: -3px;
358357
}
359358

360359
/* @deprecated 5.9.0 -- Icons removed from welcome panel. */
361360
.welcome-panel .welcome-add-page:before {
362-
content: "\f132";
361+
content: "\f132" / '';
363362
top: -1px;
364363
}
365364

366365
/* @deprecated 5.9.0 -- Icons removed from welcome panel. */
367366
.welcome-panel .welcome-setup-home:before {
368-
content: "\f102";
367+
content: "\f102" / '';
369368
top: -1px;
370369
}
371370

372371
/* @deprecated 5.9.0 -- Icons removed from welcome panel. */
373372
.welcome-panel .welcome-view-site:before {
374-
content: "\f115";
373+
content: "\f115" / '';
375374
top: -2px;
376375
}
377376

378377
/* @deprecated 5.9.0 -- Icons removed from welcome panel. */
379378
.welcome-panel .welcome-widgets-menus:before {
380-
content: "\f116";
379+
content: "\f116" / '';
381380
top: -2px;
382381
}
383382

384383
/* @deprecated 5.9.0 -- Icons removed from welcome panel. */
385384
.welcome-panel .welcome-widgets:before {
386-
content: "\f538";
385+
content: "\f538" / '';
387386
top: -2px;
388387
}
389388

390389
/* @deprecated 5.9.0 -- Icons removed from welcome panel. */
391390
.welcome-panel .welcome-menus:before {
392-
content: "\f163";
391+
content: "\f163" / '';
393392
top: -2px;
394393
}
395394

396395
/* @deprecated 5.9.0 -- Icons removed from welcome panel. */
397396
.welcome-panel .welcome-comments:before {
398-
content: "\f117";
397+
content: "\f117" / '';
399398
top: -1px;
400399
}
401400

402401
/* @deprecated 5.9.0 -- Icons removed from welcome panel. */
403402
.welcome-panel .welcome-learn-more:before {
404-
content: "\f118";
403+
content: "\f118" / '';
405404
top: -1px;
406405
}
407406

@@ -560,7 +559,7 @@
560559
}
561560

562561
.community-events .ce-separator::before {
563-
content: "\2022";
562+
content: "\2022" / '';
564563
}
565564

566565
.event-icon {
@@ -575,10 +574,10 @@
575574
font-size: 18px;
576575
}
577576
.event-meetup .event-icon:before {
578-
content: "\f484";
577+
content: "\f484" / '';
579578
}
580579
.event-wordcamp .event-icon:before {
581-
content: "\f486";
580+
content: "\f486" / '';
582581
}
583582

584583
.community-events .event-title {

src/wp-admin/css/edit.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,6 @@ form#tags-filter {
493493
#post-body .misc-pub-response-to:before,
494494
#post-body .misc-pub-comment-status:before {
495495
font: normal 20px/1 dashicons;
496-
speak: never;
497496
display: inline-block;
498497
margin-left: -1px;
499498
padding-right: 3px;
@@ -1203,7 +1202,6 @@ form#tags-filter {
12031202
margin-right: 7px;
12041203
color: #dcdcde;
12051204
font: normal 20px/1 dashicons;
1206-
speak: never;
12071205
-webkit-font-smoothing: antialiased;
12081206
-moz-osx-font-smoothing: grayscale;
12091207
}

src/wp-admin/css/forms.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ input[type="radio"]:checked::before {
168168
display: inline-block;
169169
vertical-align: middle;
170170
width: 1rem;
171-
speak: never;
172171
-webkit-font-smoothing: antialiased;
173172
-moz-osx-font-smoothing: grayscale;
174173
}

0 commit comments

Comments
 (0)