mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-17 03:56:07 +00:00
Add aria-label to the DFW buttons, props joedolson, fixes #26555
Built from https://develop.svn.wordpress.org/trunk@27766 git-svn-id: http://core.svn.wordpress.org/trunk@27603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c3b59e06b8
commit
b2b6d416f3
@ -955,10 +955,11 @@ final class _WP_Editors {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$onclick = ! empty( $args['onclick'] ) ? ' onclick="' . $args['onclick'] . '"' : '';
|
$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 } ?>">
|
<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>
|
<i class="mce-ico mce-i-<?php echo $button; ?>"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user