Accessibility: Remove unnecessary fieldset and legend elements from the User Profile page.
Also fixes a CSS margin issue in the mobile view. Props punit5658. Fixes #46093. git-svn-id: https://develop.svn.wordpress.org/trunk@44756 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bd3ee1781f
commit
cf8c68fe38
@ -313,11 +313,10 @@ endif; // $_wp_admin_css_colors
|
||||
<?php endif; ?>
|
||||
<tr class="show-admin-bar user-admin-bar-front-wrap">
|
||||
<th scope="row"><?php _e( 'Toolbar' ); ?></th>
|
||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Toolbar' ); ?></span></legend>
|
||||
<td>
|
||||
<label for="admin_bar_front">
|
||||
<input name="admin_bar_front" type="checkbox" id="admin_bar_front" value="1"<?php checked( _get_admin_bar_pref( 'front', $profileuser->ID ) ); ?> />
|
||||
<?php _e( 'Show Toolbar when viewing site' ); ?></label><br />
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user