[wp-trac] [WordPress Trac] #37451: Widget Sidebars Title text overflow

WordPress Trac noreply at wordpress.org
Tue Aug 24 13:28:35 UTC 2021


#37451: Widget Sidebars Title text overflow
-------------------------------------------------+-------------------------
 Reporter:  gk.loveweb                           |       Owner:  ovann86
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Widgets                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots good-first-bug has-  |     Focuses:  ui,
  patch needs-testing                            |  administration
-------------------------------------------------+-------------------------

Comment (by poena):

 37451/37451-with-line-height.patch is only a combination of 37451.2.diff
 and widgets.css.patch but without the JavaScript.

 ''If I read correctly,'' the JavaScript was intended to hide the toggle
 icon, and it targeted a CSS class that is not in use. With this patch, the
 toggle icon is always visible.

 I increased the line height, because I felt that it improved readability.
 I personally prefer displaying the text over two lines instead of using
 the ellipsis, but this is easily changed.


 **To test this with WordPress 5.8 or newer, you need to:**
 -Apply the patch to your test install of WordPress.
 -Install the [https://wordpress.org/plugins/classic-widgets/ classic
 widgets plugin ].

 In your test theme, register a widget area with a long name, or update the
 name of an existing widget area.
 As an example, in Twenty Twenty-One, change line 358 in functions.php:
 {{{
 'name' => esc_html__( 'Footer', 'twentytwentyone' ),
 }}}
 to
 {{{
 'name' => esc_html__( 'This is the looooongest Footer widget area name you
 have ever seen. Yes it is.', 'twentytwentyone' ),
 }}}

 -Save your changes.

 -Go to the WordPress admin area and open the widget screen to see how the
 widget area name wraps.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/37451#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list