-
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
Add template details to template parts #35444
Conversation
Size Change: +184 B (0%) Total Size: 1.07 MB
ℹ️ View Unchanged
|
fa74c50
to
2863123
Compare
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 tested this locally and it seems to work just fine. Code LGTM too.
@carolinan That's because the button is the first focusable element in the dropdown, and it should be auto-focused when the dropdown is opened the first time. I should probably add some padding around it though so that it looks less weird. IIRC, the term "template part" is supposed to be a technical detail and shouldn't be user-facing. We could somehow reword this though, open to ideas! |
It is the name of the block though so it is already user facing 🤔 .That is indeed a bigger discussion. |
I noticed the template part name in the top bar is using the slug, while the popover uses the name, which can lead to awkward discrepancies like so: It may be worth fixing that here? Can we make the "Browse all templates" button contextual? IE if I'm editing a |
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.
Still looking good!
Kapture.2021-10-12.at.11.41.07.mp4
028b9d3
to
1523e4f
Compare
1523e4f
to
b930f2c
Compare
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.
Nice :D
Description
Related to #29687. Add template details dropdown to template parts. There's also a revert button in the dropdown.
How has this been tested?
tt1-blocks
Screenshots
Types of changes
New feature
Checklist:
*.native.js
files for terms that need renaming or removal).