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/media.css

    r60640 r60806  
    358358    -webkit-font-smoothing: antialiased;
    359359    -moz-osx-font-smoothing: grayscale;
    360     content: "\f158";
     360    content: "\f158" / '';
    361361}
    362362
     
    622622
    623623.upload-php .media-modal-close .media-modal-icon:before {
    624     content: "\f335";
     624    content: "\f335" / '';
    625625    font-size: 22px;
    626626}
     
    694694
    695695.edit-attachment-frame .edit-media-header .left:before {
    696     content: "\f341";
     696    content: "\f341" / '';
    697697}
    698698
    699699.edit-attachment-frame .edit-media-header .right:before {
    700     content: "\f345";
     700    content: "\f345" / '';
    701701}
    702702
     
    10141014
    10151015.imgedit-crop:before {
    1016     content: "\f165";
     1016    content: "\f165" / '';
    10171017}
    10181018
    10191019.imgedit-scale:before {
    1020     content: "\f211";
     1020    content: "\f211" / '';
    10211021}
    10221022
    10231023.imgedit-rotate:before {
    1024     content: "\f167";
     1024    content: "\f167" / '';
    10251025}
    10261026
    10271027.imgedit-undo:before {
    1028     content: "\f171";
     1028    content: "\f171" / '';
    10291029}
    10301030
    10311031.imgedit-redo:before {
    1032     content: "\f172";
     1032    content: "\f172" / '';
    10331033}
    10341034
Note: See TracChangeset for help on using the changeset viewer.