[wp-trac] [WordPress Trac] #61321: Twenty Twenty: consider improving Pullquote block padding

WordPress Trac noreply at wordpress.org
Mon Dec 30 21:10:45 UTC 2024


#61321: Twenty Twenty: consider improving Pullquote block padding
-------------------------------------------------+-------------------------
 Reporter:  hmbashar                             |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Bundled Theme                        |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  needs-testing has-testing-info has-  |     Focuses:  css
  patch                                          |
-------------------------------------------------+-------------------------

Comment (by sabernhardt):

 ==== Option 1: only add padding when text could touch an edge

 Applying padding to the blocks only when the have a background or border
 would be less disruptive than changing the default amount.

 {{{
 /* using rem in style.css and style-rtl.css */
 .wp-block-pullquote:where(.has-background, .has-border-color,
 [style*="border"]) {
         padding: 1.5rem 1rem;
 }

 /* using pixels in editor-style-block.css and editor-style-block-rtl.css
 */
 .editor-styles-wrapper .wp-block-pullquote:where(.has-background, .has-
 border-color, [style*="border"]) {
         padding: 15px 10px;
 }
 }}}


 ==== Option 2: add a minimal amount of padding to any Pullquote block

 Any increase to the default block spacing would be unexpected, but a very
 small amount—on all four sides—might not upset people who have already
 used the block. I would suggest an even `1rem` all around (or `10px` in
 the editor styles).

 If this is preferred, use the existing rulesets and update the values for
 the `padding` property.

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


More information about the wp-trac mailing list