Make WordPress Core

Opened 2 years ago

Last modified 13 days ago

#55704 new defect (bug)

Twenty Twenty-Two: Allow customizing (top) padding through inspector controls

Reported by: bernhard-reiter's profile Bernhard Reiter Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: dev-feedback
Focuses: Cc:


The Twenty Twenty-Two (TT2) theme currently sets a fixed padding-top for the Post Comments block:

This makes sense in the context of where that block is used in the theme's templates; however, it limits the block's usefulness when the user wants to customize the theme by moving the block elsewhere, since it always comes with that hard-wired top padding.

To remediate this, I'd suggest making the block's padding customizable through Inspector Controls (I believe Gutenberg has controls for block padding now?)

Alternatively, the padding could be removed, and a spacer block could be used instead (with its height set accordingly). The downside of this approach is that we can't set its height to a relative value like --wp--custom--spacing--small; we'd have to assign a fixed value to it instead. Furthermore, this would basically revert


This ticket is based on this discussion on a somewhat related GB issue.

Change History (2)

#1 @SergeyBiryukov
7 months ago

  • Component changed from Themes to Bundled Theme
  • Summary changed from TT2: Allow customizing (top) padding through inspector controls to Twenty Twenty-Two: Allow customizing (top) padding through inspector controls

#2 @karmatosed
13 days ago

  • Keywords dev-feedback added
Note: See TracTickets for help on using tickets.