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-includes/css/wp-pointer.css

    r51727 r60806  
    2424    border-radius: 50%;
    2525    color: #2271b1;
    26     content: "\f227";
     26    content: "\f227" / '';
    2727    font: normal 20px/1.6 dashicons;
    2828    position: absolute;
     
    6666    background: none;
    6767    color: #787c82;
    68     content: "\f153";
     68    content: "\f153" / '';
    6969    display: block !important;
    7070    font: normal 16px/1 dashicons;
Note: See TracChangeset for help on using the changeset viewer.