-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Site Editor: add block breadcrumb #21274
Conversation
Size Change: +19 B (0%) Total Size: 863 kB
ℹ️ 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.
Incredible! Looks good to me. I'm not sure if this is possible, but I think it would be cool to change Document
to the name of the entity you are editing. For example:
- If you edit the "front-page" template, the breadcrumb would start with
front-page >
instead ofdocument
. - If you edit the "header" template part, the breadcrumb would start with
header >
instead ofdocument
. - Instead of showing
template-part
in the breadcrumb, show the entity name (e.g.front-page > header > paragraph
instead ofDocument > template-part > paragraph
)
I think the breadcrumb might just need updated to use the experimental block label instead of the block name.
But the functionality looks good to me now 👍
I think it would be for edit-site, but I'm not sure if it's needed in post editor and I wanted to avoid making changes there for now. I might open up a follow-up PR for that discussion. |
Description
In its present state it's hard for me to determine whether you are inserting blocks in the template part or the surrounding content area due to lack of visual indicators. Adding block breadcrumbs should hopefully make that easier.
How has this been tested?
Navigate to Site Editor and make sure that block breadcrumb works as expected. Check various screen sizes.
Screenshots
Types of changes
New feature (non-breaking change which adds functionality)
Checklist: