Accessibility: Make sure the Site Health layout tables are correctly linearized.

Adds `role="presentation"` to the `<table>` elements used in the Site Health reports.

Ideally, HTML tables should be used for tabular data. When tables are used for layout purposes, it's important to remove any native semantics so that assistive technologies can correctly announce the table content in a linearized fashion.

Props chetan200891.
Fixes #46725.


git-svn-id: https://develop.svn.wordpress.org/trunk@45075 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrea Fercia 2019-03-30 14:41:16 +00:00
parent d1dfe7c414
commit 02a0911bcc

View File

@ -133,7 +133,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
);
}
?>
<table class="widefat striped health-check-table">
<table class="widefat striped health-check-table" role="presentation">
<tbody>
<?php
foreach ( $details['fields'] as $field ) {