Skip to content

Commit 0000f96

Browse files
authored
Remove the Styles link in Site Editor (#36637)
1 parent 1c62593 commit 0000f96

File tree

2 files changed

+1
-21
lines changed
  • packages/edit-site/src/components

2 files changed

+1
-21
lines changed

packages/edit-site/src/components/editor/index.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function Editor( { initialSettings, onError } ) {
104104
const { setPage, setIsInserterOpened, updateSettings } = useDispatch(
105105
editSiteStore
106106
);
107-
const { enableComplementaryArea } = useDispatch( interfaceStore );
107+
108108
useEffect( () => {
109109
updateSettings( initialSettings );
110110
}, [] );
@@ -162,19 +162,6 @@ function Editor( { initialSettings, onError } ) {
162162
}
163163
}, [ isNavigationOpen ] );
164164

165-
useEffect(
166-
function openGlobalStylesOnLoad() {
167-
const searchParams = new URLSearchParams( window.location.search );
168-
if ( searchParams.get( 'styles' ) === 'open' ) {
169-
enableComplementaryArea(
170-
'core/edit-site',
171-
'edit-site/global-styles'
172-
);
173-
}
174-
},
175-
[ enableComplementaryArea ]
176-
);
177-
178165
// Don't render the Editor until the settings are set and loaded
179166
const isReady =
180167
settings?.siteUrl &&

packages/edit-site/src/components/navigation-sidebar/navigation-panel/index.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,6 @@ const NavigationPanel = ( { isOpen, setIsOpen, activeTemplateType } ) => {
8686
page: 'gutenberg-edit-site',
8787
} ) }
8888
/>
89-
<NavigationItem
90-
title={ __( 'Styles' ) }
91-
href={ addQueryArgs( '', {
92-
page: 'gutenberg-edit-site',
93-
styles: 'open',
94-
} ) }
95-
/>
9689
<NavigationItem
9790
title={ __( 'Templates' ) }
9891
item="wp_template"

0 commit comments

Comments
 (0)