Make WordPress Core


Ignore:
Timestamp:
09/28/2025 11:38:57 PM (9 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/theme-install.php

    r59784 r60806  
    600600            <div class="wp-full-overlay-footer">
    601601                <button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse Sidebar' ); ?>">
    602                     <span class="collapse-sidebar-arrow"></span>
     602                    <span class="collapse-sidebar-arrow" aria-hidden="true"></span>
    603603                    <span class="collapse-sidebar-label"><?php _e( 'Collapse' ); ?></span>
    604604                </button>
Note: See TracChangeset for help on using the changeset viewer.