Skip to content

Commit

Permalink
Site Editor: fix sidebar item animation regression (WordPress#67771)
Browse files Browse the repository at this point in the history
For top-level nav items without any child routes (styles) don't animate the sidebar

Co-authored-by: ramonjd <[email protected]>
Co-authored-by: tellthemachines <[email protected]>
  • Loading branch information
3 people authored and yogeshbhutkar committed Dec 18, 2024
1 parent 8d860ab commit e1cd407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function Layout() {
/>
<SidebarContent
shouldAnimate={
routeKey !== 'styles-view'
routeKey !== 'styles'
}
routeKey={ routeKey }
>
Expand Down

0 comments on commit e1cd407

Please sign in to comment.