-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Widget Group: Make title directly editable #34799
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
Widget Group: Make title directly editable #34799
Conversation
|
Size Change: +1.53 kB (0%) Total Size: 1.06 MB
ℹ️ View Unchanged
|
|
This works nicely and feels a lot smoother than the Legacy Widget-like approach. Thanks @noisysocks! |
|
+1, this felt easier to work with. I wonder if the default placeholder text should be something like Widget group title instead of the name of the first block type that is added? But perhaps that should be in a separate issue? |
I like this idea @carolinan. Maybe just Title is enough? Also I was wondering if we should try to make it similar to the way placeholder text works on a Heading block now that we've gone down the directly editable path. In that case it would have: • Gray placeholder text as the default But curious to hear what others think? |
|
Here's how that looks! Kapture.2021-09-17.at.14.22.16.mp4 |
|
Nice! |
|
I find it very clumsy that the Title placeholder just stays there giving the impression that it will also be displayed on the front end. You just want to remove it, because the block editor resembles what we display more or less. So this Title placeholder looks like an artifact that is somewhat broken. |
@draganescu The same could be said about the Heading block, no? FWIW neither feel clumsy or broken to me 😅 IMO, this treatment of the placeholder text is an improvement because:
|
|
I agree @critterverse pherhaps I am a bit stuck with the fact that is optional and I want to remove it :)) |
draganescu
left a comment
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 think this is an improvement over the previous interaction. I also like how we remove code to implement this. Win!
@draganescu Opened a potential follow up issue that might help with this! #35017 |
Description
Implements the design feedback in #34484 (comment).
This changes the Widget Group block so that the title is directly editable using a
RichText. It's a little disingenuous to do this because the title isn't truly WYSIWYG, but it has the benefit of meaning that elements don't jump around the screen when you select the Widget Group.How has this been tested?
Screenshots
Kapture.2021-09-14.at.14.15.46.mp4
Checklist:
*.native.jsfiles for terms that need renaming or removal).