mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Customizer: Add an aria-expanded attribute to the Add Menu button to improve accessibility.
props afercia. fixes #32791. git-svn-id: https://develop.svn.wordpress.org/trunk@32971 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -562,9 +562,8 @@ class WP_Customize_New_Menu_Section extends WP_Customize_Section {
|
||||
protected function render() {
|
||||
?>
|
||||
<li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="accordion-section-new-menu">
|
||||
<button type="button" class="button-secondary add-new-menu-item add-menu-toggle">
|
||||
<button type="button" class="button-secondary add-new-menu-item add-menu-toggle" aria-expanded="false">
|
||||
<?php echo esc_html( $this->title ); ?>
|
||||
<span class="screen-reader-text"><?php _e( 'Press return or enter to open' ); ?></span>
|
||||
</button>
|
||||
<ul class="new-menu-section-content"></ul>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user