Skip to content

Commit

Permalink
Merge style book case into default, add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Oct 8, 2024
1 parent 72d952c commit 1d52e69
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions packages/edit-site/src/components/global-styles/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,21 +260,12 @@ function GlobalStylesEditorCanvasContainerLink() {
case 'global-styles-css':
goTo( '/css' );
break;
case 'style-book':
/*
* The stand-alone style book is open
* and the revisions panel is open,
* close the revisions panel.
* Otherwise keep the style book open while
* browsing global styles panel.
*/
if ( isRevisionsOpen ) {
goTo( '/', { isBack: true } );
}
break;
default:
// In general, if the revision screen is in view but the
// `editorCanvasContainerView` is not a revision view, close it.
// This also includes the scenario when the stand-alone style
// book is open, in which case we want the user to close the
// revisions screen and browse global styles.
if ( isRevisionsOpen ) {
goTo( '/', { isBack: true } );
}
Expand Down

0 comments on commit 1d52e69

Please sign in to comment.