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/includes/dashboard.php

    r60643 r60806  
    14611461                        #>
    14621462                            {{ 'wordcamp' === event.type ? 'WordCamp' : titleCaseEventType }}
    1463                             <span class="ce-separator"></span>
     1463                            <span class="ce-separator" aria-hidden="true"></span>
    14641464                        <# } #>
    14651465                        <span class="event-city">{{ event.location.location }}</span>
Note: See TracChangeset for help on using the changeset viewer.