Site Health: Update "Passed tests" button label to match both expanded and collapsed state.

Add `aria-controls` to declare what ID is being toggled.

Props Clorith, afercia.
Fixes #46663. See #46573.

git-svn-id: https://develop.svn.wordpress.org/trunk@45026 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2019-03-27 02:56:09 +00:00
parent c454b24d92
commit a58b5f2f70

View File

@ -97,8 +97,8 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
</div> </div>
<div class="view-more"> <div class="view-more">
<button type="button" class="button site-health-view-passed" aria-expanded="false"> <button type="button" class="button site-health-view-passed" aria-expanded="false" aria-controls="health-check-issues-good">
<?php _e( 'Show passed tests' ); ?> <?php _e( 'Passed tests' ); ?>
</button> </button>
</div> </div>