Add aria-label to the DFW buttons, props joedolson, fixes #26555
git-svn-id: https://develop.svn.wordpress.org/trunk@27766 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
efec2a916c
commit
42055c8c93
|
@ -955,10 +955,11 @@ final class _WP_Editors {
|
|||
}
|
||||
|
||||
$onclick = ! empty( $args['onclick'] ) ? ' onclick="' . $args['onclick'] . '"' : '';
|
||||
$title = esc_attr( $args['title'] );
|
||||
?>
|
||||
|
||||
<div class="mce-widget mce-btn<?php if ( $args['both'] ) { ?> wp-fullscreen-both<?php } ?>">
|
||||
<button type="button" role="presentation" title="<?php echo $args['title']; ?>"<?php echo $onclick; ?> id="wp_fs_<?php echo $button; ?>">
|
||||
<button type="button" aria-label="<?php echo $title; ?>" title="<?php echo $title; ?>"<?php echo $onclick; ?> id="wp_fs_<?php echo $button; ?>">
|
||||
<i class="mce-ico mce-i-<?php echo $button; ?>"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue