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:
parent
d1dfe7c414
commit
02a0911bcc
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user