Add screen reader text to announce that menu item accordion sections are expandable. Remove redundant title attribute.
props joedolson. fixes #28866. Built from https://develop.svn.wordpress.org/trunk@29239 git-svn-id: http://core.svn.wordpress.org/trunk@29023 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9a02dabf34
commit
53c599563c
|
@ -1130,7 +1130,10 @@ function do_accordion_sections( $screen, $context, $object ) {
|
|||
}
|
||||
?>
|
||||
<li class="control-section accordion-section <?php echo $hidden_class; ?> <?php echo $open_class; ?> <?php echo esc_attr( $box['id'] ); ?>" id="<?php echo esc_attr( $box['id'] ); ?>">
|
||||
<h3 class="accordion-section-title hndle" tabindex="0" title="<?php echo esc_attr( $box['title'] ); ?>"><?php echo esc_html( $box['title'] ); ?></h3>
|
||||
<h3 class="accordion-section-title hndle" tabindex="0">
|
||||
<?php echo esc_html( $box['title'] ); ?>
|
||||
<span class="screen-reader-text"><?php _e( 'Press return or enter to expand' ); ?></span>
|
||||
</h3>
|
||||
<div class="accordion-section-content <?php postbox_classes( $box['id'], $page ); ?>">
|
||||
<div class="inside">
|
||||
<?php call_user_func( $box['callback'], $object, $box ); ?>
|
||||
|
|
Loading…
Reference in New Issue