Make WordPress Core


Ignore:
Timestamp:
06/30/2020 01:24:12 PM (4 years ago)
Author:
afercia
Message:

Accessibility: Site Health: Improve the "Copy site info" button accessibility.

  • avoids a focus loss when clicking the "Copy site info" button
  • uses setTimeout() and clearTimeout() to properly handle the "Copied!" text
  • minor JavaScript coding standards

Props audrasjb, Clorith, afercia.
See #48463, #50335.
Fixes #50322.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/site-health-info.php

    r47198 r48233  
    100100                <?php _e( 'Copy site info to clipboard' ); ?>
    101101            </button>
    102             <span class="success" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
     102            <span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
    103103        </div>
    104104    </div>
Note: See TracChangeset for help on using the changeset viewer.