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

Site Editor: close navigation panel after template selection #29806

Closed
wants to merge 5 commits into from
Closed

Site Editor: close navigation panel after template selection #29806

wants to merge 5 commits into from

Conversation

creativecoder
Copy link
Contributor

@creativecoder creativecoder commented Mar 12, 2021

Description

Automatically closes the navigation panel within the site editor after selecting a template or content item.

Follow-up to #29489: it's particularly helpful on smaller screens, where you would otherwise be left with the navigation panel taking up most of the screen after making a selection.

Based off of #29762, which is required for e2e tests to pass.

How has this been tested?

  • Click on a template or content item in the site editor navigation panel
  • The panel will close and the template will be loaded

Screenshots

site-editor-navigation-panel-close-on-select

Types of changes

New feature (non-breaking change which adds functionality)

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • I've tested my changes with keyboard and screen readers.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.
  • I've updated all React Native files affected by any refactorings/renamings in this PR.

- Use separate tests database service
- Configure database credentials in every service
- Set wp-config.php to be writable

Co-authored-by: Riad Benguella <[email protected]>
Co-authored-by: Noah Allen <[email protected]>
@creativecoder
Copy link
Contributor Author

Note I cherry-picked f8052e1 to try and get e2e tests passing in CI.

There is still a (seemingly unrelated) navigation editor test failing... will wait until #29762 is updated against trunk, then try rebasing this branch. (cc @david-szabo97 )

@david-szabo97 david-szabo97 force-pushed the fix/reduce-motion-override-delay-too branch from 43ebb01 to 9d9def4 Compare March 16, 2021 21:48
@gziolo gziolo closed this Mar 17, 2021
@gziolo gziolo deleted the branch WordPress:fix/reduce-motion-override-delay-too March 17, 2021 06:10
@creativecoder
Copy link
Contributor Author

Note that I'm not able to reopen this PR to update the base branch to trunk, so I've opened #29956 instead, after rebasing from trunk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants