Skip to content

Commit

Permalink
Site Editor: fix sidebar item animation regression (#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 Dec 10, 2024
1 parent 4867dfc commit 358fe48
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

1 comment on commit 358fe48

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 358fe48.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12250101757
📝 Reported issues:

Please sign in to comment.