Widgets: move the chooser inside the selected widget so it inherits the width, add some keyboard shortcuts: tab to select, enter to append and escape to cancel. Props shaunandrews, see #25821

git-svn-id: https://develop.svn.wordpress.org/trunk@26271 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2013-11-19 18:02:14 +00:00
parent c6a57c410a
commit fdc08a857e
3 changed files with 70 additions and 36 deletions

View File

@@ -407,11 +407,11 @@ foreach ( $wp_registered_sidebars as $sidebar => $registered_sidebar ) {
</div>
<div id="widgets-chooser">
<h3><?php _e( 'Choose an area to place this widget&hellip;' ); ?></h3>
<h3><?php _e( 'Choose a sidebar:' ); ?></h3>
<ul class="widgets-chooser-sidebars"></ul>
<div class="widgets-chooser-actions">
<button class="button-primary"><?php _e( 'Add Widget' ); ?></button>
<button class="button-secondary"><?php _e( 'Cancel' ); ?></button>
<button class="button-primary"><?php _e( 'Add Widget' ); ?></button>
</div>
</div>