-
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
Template Part: Allow changing properties in focus mode #43151
Conversation
<Text | ||
size={ 16 } |
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.
@@ -49,17 +55,18 @@ export default function TemplateDetails( { template, onClose } ) { | |||
|
|||
return ( | |||
<div className="edit-site-template-details"> | |||
<div className="edit-site-template-details__group"> | |||
<VStack className="edit-site-template-details__group" spacing={ 3 }> |
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 switched to VStrack
. It makes it much easier to control spacing.
Size Change: +2.33 kB (0%) Total Size: 1.27 MB
ℹ️ View Unchanged
|
Nice! Everything seems to be working :) We can probably lose the helper text beneath the title input. I think we should put these fields in the Inspector too, but we can do that separately since it should be aligned with regular templates. Perhaps we can tackle them together. |
Remove help text just for template parts or for both?
I agree it makes sense to implement this for both template types. Probably as a part of the |
Probably just Template Parts for now, the content doesn't make sense there.
I shared some potential designs over here: #36951 (comment) |
Added condition to hide the help text for template parts 👍 |
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, I think this is good to go.
What?
Resolves #37220.
PR updates the "Template Details" dropdown and enables changing the Template Part title and area.
The title edit field is only displayed for user-created parts while changing the
area
is available for any template part.Why?
The user should be able to manage template properties while working in "focus mode."
How?
canEditTitle
condition to include template parts.Testing Instructions
Additional tests
Confirm that template part-related changes don't affect the details dropdown for the Templates.
Screenshots or screencast