From 13c7ae3d351d8f8c8437fa59ac1bcc7178d7e151 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Fri, 15 Mar 2019 12:36:49 -0400 Subject: [PATCH] Edit Post: Collapse FocusReturnProvider to handle className application to div --- .../higher-order/with-focus-return/context.js | 6 +- .../edit-post/src/components/layout/index.js | 118 +++++++++--------- 2 files changed, 62 insertions(+), 62 deletions(-) diff --git a/packages/components/src/higher-order/with-focus-return/context.js b/packages/components/src/higher-order/with-focus-return/context.js index 8f270ebfe9b235..5db8823422f660 100644 --- a/packages/components/src/higher-order/with-focus-return/context.js +++ b/packages/components/src/higher-order/with-focus-return/context.js @@ -40,10 +40,12 @@ class FocusReturnProvider extends Component { } render() { + const { children, className } = this.props; + return ( -
- { this.props.children } +
+ { children }
); diff --git a/packages/edit-post/src/components/layout/index.js b/packages/edit-post/src/components/layout/index.js index 1ee4b46c24ad39..643184f4b971be 100644 --- a/packages/edit-post/src/components/layout/index.js +++ b/packages/edit-post/src/components/layout/index.js @@ -72,68 +72,66 @@ function Layout( { tabIndex: -1, }; return ( - -
- - - - -
-
- - - - - - - - { ( mode === 'text' || ! isRichEditingEnabled ) && } - { isRichEditingEnabled && mode === 'visual' && } -
- -
-
- -
+ + + + + +
+
+ + + + + + + + { ( mode === 'text' || ! isRichEditingEnabled ) && } + { isRichEditingEnabled && mode === 'visual' && } +
+ +
+
+
- { publishSidebarOpened ? ( - - ) : ( - -
- -
- - - { - isMobileViewport && sidebarIsOpened && - } -
- ) } - -
+ { publishSidebarOpened ? ( + + ) : ( + +
+ +
+ + + { + isMobileViewport && sidebarIsOpened && + } +
+ ) } + + ); }