Make WordPress Core


Ignore:
Timestamp:
08/19/2019 04:12:44 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Accessibility: Make sure layout tables across the admin are correctly linearized.

Adds role="presentation" to the <table> elements used for layout purposes.

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 greatislander, afercia.
Merges [45403] to the 5.2 branch.
See #46899.

Location:
branches/5.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.2

  • branches/5.2/src/wp-admin/network/user-new.php

    r43571 r45834  
    121121<?php } ?>
    122122    <form action="<?php echo network_admin_url( 'user-new.php?action=add-user' ); ?>" id="adduser" method="post" novalidate="novalidate">
    123     <table class="form-table">
     123    <table class="form-table" role="presentation">
    124124        <tr class="form-field form-required">
    125125            <th scope="row"><label for="username"><?php _e( 'Username' ); ?></label></th>
Note: See TracChangeset for help on using the changeset viewer.