Make WordPress Core

Opened 17 months ago

Closed 11 months ago

Last modified 10 months ago

#51224 closed defect (bug) (fixed)

Twenty Thirteen: Cover block alignment issues

Reported by: melchoyce Owned by: ryelle
Milestone: 5.7 Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: has-patch
Focuses: Cc:


The cover block positioning is broken in Twenty Thirteen. Centered content is offset, and trying to use the new block alignment tool positions content off-screen.

Attaching screenshots to demonstrate.

Attachments (2)

2013-cover-bottomleft.png (99.6 KB) - added by melchoyce 17 months ago.
Using the "bottom left" alignment option in the cover block
2013-cover-centered.png (110.1 KB) - added by melchoyce 17 months ago.
Default, center alignment

Download all attachments as: .zip

Change History (9)

17 months ago

Using the "bottom left" alignment option in the cover block

17 months ago

Default, center alignment

This ticket was mentioned in PR #992 on WordPress/wordpress-develop by kjellr.

11 months ago

  • Keywords has-patch added

Trac ticket: https://core.trac.wordpress.org/ticket/51224


This PR clears up the front-end display of cover block children. To match the editor, they have their margins set to auto, and are always the default width.*

_*I find this part weird, but that's how these appear in the editor, so I figured let's match that._

Test content: https://gist.github.com/kjellr/cb83095e95b28cc914e970ca0c7f7b18

## Screenshots



_Editor (for reference):_

#2 @prbot
11 months ago

melchoyce commented on PR #992:

Seeing some weirdness in the placeholder still:


Everything else seems to be working 👍

#3 @prbot
11 months ago

kjellr commented on PR #992:

That's the Group block placeholder, right? I hadn't touched that block in this PR, so I think that's a separate bug. I took a quick look now, but the fix isn't obvious, so I suggest we punt that to a separate bug report + PR.

#4 @prbot
11 months ago

melchoyce commented on PR #992:

Sounds good 👍

#5 @ryelle
11 months ago

  • Owner set to ryelle
  • Resolution set to fixed
  • Status changed from new to closed

In 50346:

Twenty Thirteen: Fix alignment of child blocks within the Cover block.

Props kjellr, melchoyce.
Fixes #51224.

#6 @prbot
11 months ago

ryelle commented on PR #992:

Committed in r50346.

#7 @desrosj
10 months ago

  • Milestone changed from Awaiting Review to 5.7
Note: See TracTickets for help on using tickets.