[wp-trac] [WordPress Trac] #54072: Adjust heading/title structure on editing forms for Legacy Widgets

WordPress Trac noreply at wordpress.org
Fri Sep 3 16:56:18 UTC 2021


#54072: Adjust heading/title structure on editing forms for Legacy Widgets
--------------------------+-----------------------------
 Reporter:  critterverse  |      Owner:  (none)
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  ui, ui-copy   |
--------------------------+-----------------------------
 **Context**

 Hi all, there’s a Gutenberg PR currently in the works that introduces a
 new block called “Widget Group.” This lets users add a title to a group of
 blocks in a way that's compatible with older themes:
 https://github.com/WordPress/gutenberg/pull/34484

 More context on the problem that this attempts to address can be found on
 GitHub: https://github.com/WordPress/gutenberg/issues/32723

 The Widget Group uses a similar editing UI as the Legacy Widget block.
 Some small adjustments have been made to the heading/title structure that
 could also be an improvement for the Legacy Widget block.

 **Proposal**

 In the Widget Group, the title input form is autofilled with the type of
 block used and this title is shown as gray hint text. If nothing is
 entered into the form, the hint text will be displayed as the title.

 This is also how titles work on some types of Legacy Widgets, except that
 **the hint text is not displayed**.  For example when using an Archives
 Legacy Widget, if nothing is entered into the title input, “Archives” will
 be displayed as the title. It would be nice to **update the editing form
 to display the hint text** in these instances.

 ''Note: There are other Legacy Widgets, such as an Image, that do not
 display a title by default. These types of Legacy Widgets could remain as
 is, using the current behavior of showing an empty input with no hint
 text.''

 **The heading shown at the top of the editing UI could also be updated to
 say "Legacy Widget" instead of the type of widget.**  This would allow the
 heading to match the block name in List view, avoids some repetitiveness
 with the title input, and helps streamline the editing UI between these
 two blocks.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54072>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list