-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Style book: Hide inline preview when style book is open #46705
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
Conversation
|
Size Change: +194 B (0%) Total Size: 1.32 MB
ℹ️ View Unchanged
|
| } | ||
|
|
||
| function StyleBook( { isSelected, onSelect, onClose } ) { | ||
| function StyleBook( { selectedBlockPath, onSelect, onClose } ) { |
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.
I don't think StyleBook should be concerned with what a "path" is. StyleBook can be rendered in any context independently of whether or not a Navigator is used. I suggest instead adding a selectedCategory: string or isCategorySelected: ( category: string ) => boolean prop to StyleBook and moving the path logic up one level.
|
It is good to have both as per the discussion here |
What?
Fixes: #46394
Note: included a change to common component
TabsPanelin this PR for testing purposes. Created #46704 for this change.Testing Instructions
Screenshots or screencast