Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide Extended Settings unless Sidebar is opened #3065

Merged
merged 1 commit into from
Oct 19, 2017

Conversation

jasmussen
Copy link
Contributor

This fixes #2849, props @DevinWalker for concept.

Extended settings is the panel at the bottom that holds extra metaboxes. It is present when a plugin adds such metaboxes, otherwise it's not there. Given that the purpose of being able to dismiss the sidebar is for a simpler, lighter, writing experience, it makes sense to hide this panel if the sidebar panel is hidden. This PR does that.

Additionally it fixes a CSS bleed issue for the placeholder text block.

How Has This Been Tested?

Tested in Chrome, WP Docker, with Yoast SEO enabled.

Screenshots (jpeg or gifs if applicable):

screen shot 2017-10-19 at 13 26 10

screen shot 2017-10-19 at 13 26 12

bleed issue

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows has proper inline documentation.

This fixes #2849, props @DevinWalker for concept.

Extended settings is the panel at the bottom that holds extra metaboxes. It is present when a plugin adds such metaboxes, otherwise it's not there. Given that the purpose of being able to dismiss the sidebar is for a simpler, lighter, writing experience, it makes sense to hide this panel if the sidebar panel is hidden. This PR does that.
@jasmussen jasmussen requested a review from youknowriad October 19, 2017 11:29
@jasmussen jasmussen self-assigned this Oct 19, 2017
@jasmussen jasmussen added General Interface Parts of the UI which don't fall neatly under other labels. [Feature] Inspector Controls The interface showing block settings and the controls available for each block [Type] Enhancement A suggestion for improvement. labels Oct 19, 2017
Copy link
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed in private. Let's do this for now and explore a way to inline metaboxes in a future release.

@jasmussen jasmussen merged commit 9fd7d73 into master Oct 19, 2017
@jasmussen jasmussen deleted the try/hide-settings-when-sidebar-closed branch October 19, 2017 12:03
@jasmussen
Copy link
Contributor Author

Thanks. I agree, it would be good to explore further improvements to the metabox implementation, but this is a great v1, and in the current panel configuration, it'd be good to try with the hiding stuff from this PR.

@DevinWalker
Copy link
Contributor

Yes nice work! Looks good for v1 - I agree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Inspector Controls The interface showing block settings and the controls available for each block General Interface Parts of the UI which don't fall neatly under other labels. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extended settings visible when settings are hidden
3 participants