Make WordPress Core


Ignore:
Timestamp:
02/07/2026 11:52:30 PM (9 months ago)
Author:
joedolson
Message:

Media: Add external icon to alt text links.

This link opens in a new tab, and needs a visual indicator to provide an affordance to sighted users that this will happen.

Props burtrw, sabernhardt, audrasjb, westonruter, joedolson.
Fixes #64374.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media-template.php

    r60806 r61597  
    164164                'target="_blank"',
    165165                sprintf(
    166                         '<span class="screen-reader-text"> %s</span>',
     166                        '<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span>',
    167167                        /* translators: Hidden accessibility text. */
    168168                        __( '(opens in a new tab)' )
Note: See TracChangeset for help on using the changeset viewer.