-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collapse list view by default in all editors #39611
Collapse list view by default in all editors #39611
Conversation
Size Change: -3 B (0%) Total Size: 1.21 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me.
Default value change might be worth mentioning in Changelog.
Thanks for all the reviews. Given the scope of the change I'll leave this open for a little while longer just in case. I'll make sure @draganescu (who is handling the release) is aware of the need to reflect this change in the Changelog. |
What?
This PR defaults the List View to have all branches/nodes collapsed by default across all Editors by altering the default expanded state on the underlying
<ListView>
component.Why?
This is a follow up to #39573 where we collapse all nodes on the Site Editor only. Many folk suggested this would be good feature to have on all ListView instances across all editors.
How?
The PR marks the
expandNested
prop of the underlying<ListView>
component to befalse
by default.This means all nodes are collapsed but they can be expanded manually or by clicking on a given block in the canvas.
Testing Instructions
Screenshots or screencast
Screen.Capture.on.2022-03-21.at.12-07-33.mov