mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-14 17:44:25 +00:00
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. Fixes #46899. git-svn-id: https://develop.svn.wordpress.org/trunk@45403 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -300,7 +300,7 @@ if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_us
|
||||
<h2 id="add-existing-user"><?php _e( 'Add Existing User' ); ?></h2>
|
||||
<form action="site-users.php?action=adduser" id="adduser" method="post">
|
||||
<input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
|
||||
<table class="form-table">
|
||||
<table class="form-table" role="presentation">
|
||||
<tr>
|
||||
<th scope="row"><label for="newuser"><?php _e( 'Username' ); ?></label></th>
|
||||
<td><input type="text" class="regular-text wp-suggest-user" name="newuser" id="newuser" /></td>
|
||||
@@ -334,7 +334,7 @@ if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_use
|
||||
<h2 id="add-new-user"><?php _e( 'Add New User' ); ?></h2>
|
||||
<form action="<?php echo network_admin_url( 'site-users.php?action=newuser' ); ?>" id="newuser" method="post">
|
||||
<input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
|
||||
<table class="form-table">
|
||||
<table class="form-table" role="presentation">
|
||||
<tr>
|
||||
<th scope="row"><label for="user_username"><?php _e( 'Username' ); ?></label></th>
|
||||
<td><input type="text" class="regular-text" name="user[username]" id="user_username" /></td>
|
||||
|
||||
Reference in New Issue
Block a user