Make WordPress Core


Ignore:
Timestamp:
07/11/2023 12:57:19 PM (3 years ago)
Author:
audrasjb
Message:

I18n: Improve the use of dashicons-external icon for external links.

This changeset modifies how the dashicons-external icon is used in external links by editing its styles and adding a space between the text and the icon
for better accessibility.

Props SergeyBiryukov, afercia, isabel_brison, mukesh27, sabernhardt, oglekler, audrasjb.
Fixes #47303.

File:
1 edited

Legend:

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

    r56191 r56211  
    82408240    echo '<p class="button-container">';
    82418241    printf(
    8242         '<a class="button button-primary" href="%1$s" target="_blank" rel="noopener">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
     8242        '<a class="button button-primary" href="%1$s" target="_blank" rel="noopener">%2$s<span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
    82438243        esc_url( $direct_update_url ),
    82448244        __( 'Update PHP' ),
Note: See TracChangeset for help on using the changeset viewer.