[wp-trac] [WordPress Trac] #46941: Need to add 5px space in selected admin widget items

WordPress Trac noreply at wordpress.org
Mon Aug 26 08:56:30 UTC 2019


#46941: Need to add 5px space in selected admin widget items
---------------------------------------+---------------------------------
 Reporter:  ketanumretiya030           |       Owner:  audrasjb
     Type:  defect (bug)               |      Status:  accepted
 Priority:  normal                     |   Milestone:  5.3
Component:  Widgets                    |     Version:
 Severity:  normal                     |  Resolution:
 Keywords:  has-screenshots has-patch  |     Focuses:  ui, administration
---------------------------------------+---------------------------------

Comment (by afercia):

 I'd tend to think the margin shouldn't be reduced from the original 10
 pixels to 5 pixels. Especially on small screens, having more margin helps
 touch interaction to better target the right widget.

 Looking a bit better into this, the breaking change comes from [41602] /
 #41614. At that time, the `!important` made the declaration conflict with
 the desired styling within the Customizer. Instead of adding CSS to fix
 this, seems to me it's better to remove the declaration. The necessary
 margin is already inherited from the desktop view styles.

 Some quick testing of [attachment:"46941.3.diff"] would be nice :) Please
 also check the widgets panel in the Customizer.

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


More information about the wp-trac mailing list