Make WordPress Core

Changeset 45075


Ignore:
Timestamp:
03/30/2019 02:41:16 PM (6 years ago)
Author:
afercia
Message:

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.

File:
1 edited

Legend:

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

    r45071 r45075  
    134134                    }
    135135                    ?>
    136                     <table class="widefat striped health-check-table">
     136                    <table class="widefat striped health-check-table" role="presentation">
    137137                        <tbody>
    138138                        <?php
Note: See TracChangeset for help on using the changeset viewer.