PressThis:

- Close the sidebar on moving the focus outside of it (by clicking or by "tabbing").
- Fix a (weird) structural CSS problem where clicks go through the sidebar when it is open.
- Clean up the JS a bit.
Fixes #31457.
Built from https://develop.svn.wordpress.org/trunk@31651


git-svn-id: http://core.svn.wordpress.org/trunk@31632 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz
2015-03-06 22:57:26 +00:00
parent 47efbd9dcb
commit a27967aa05
8 changed files with 92 additions and 72 deletions

View File

@@ -791,7 +791,7 @@ class WP_Press_This {
) );
?>
</div>
<button type="button" class="button add-cat-submit"><?php _e( 'Add' ); ?></button>
<button type="button" class="add-cat-submit"><?php _e( 'Add' ); ?></button>
</div>
<?php } ?>
<div class="categories-search-wrapper">
@@ -834,7 +834,7 @@ class WP_Press_This {
<label class="screen-reader-text" for="new-tag-post_tag"><?php _e( 'Tags' ); ?></label>
<p>
<input type="text" id="new-tag-post_tag" name="newtag[post_tag]" class="newtag form-input-tip" size="16" autocomplete="off" value="" />
<button type="button" class="button tagadd"><?php _e( 'Add' ); ?></button>
<button type="button" class="tagadd"><?php _e( 'Add' ); ?></button>
</p>
</div>
<p class="howto">
@@ -1035,7 +1035,8 @@ $admin_body_classes = apply_filters( 'admin_body_class', '' );
</div>
</div>
<div class="options-panel is-off-screen is-hidden">
<div class="options-panel-back is-hidden" tabindex="-1"></div>
<div class="options-panel is-off-screen is-hidden" tabindex="-1">
<div class="post-options">
<?php if ( $supports_formats ) : ?>