Make WordPress Core


Ignore:
Timestamp:
09/28/2025 11:38:57 PM (8 months ago)
Author:
joedolson
Message:

A11y: Ensure icons are not spoken by screen readers.

For all CSS generated icons across core, either add aria-hidden="true" to the HTML wrapper or set the generated content alternative to an empty string in the CSS using the alternative text specification for CSS generated content.

Props afercia, joedolson, cheffheid, jhabdas.
Fixes #40428.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/revisions.css

    r60259 r60806  
    494494    left: 2px;
    495495    color: #50575e;
    496     content: "\f229";
     496    content: "\f229" / '';
    497497    font: normal 18px/1 dashicons;
    498498    speak: never;
     
    513513
    514514.wp-slider .ui-slider-handle.from-handle:before {
    515     content: "\f139";
     515    content: "\f139" / '';
    516516}
    517517
    518518.wp-slider .ui-slider-handle.to-handle:before {
    519     content: "\f141";
     519    content: "\f141" / '';
    520520}
    521521
    522522.rtl .wp-slider .ui-slider-handle.from-handle:before {
    523     content: "\f141";
     523    content: "\f141" / '';
    524524}
    525525
    526526.rtl .wp-slider .ui-slider-handle.to-handle:before {
    527     content: "\f139";
     527    content: "\f139" / '';
    528528    right: -1px;
    529529}
Note: See TracChangeset for help on using the changeset viewer.