Make WordPress Core

Opened 7 weeks ago

Last modified 7 weeks ago

#63073 new defect (bug)

Twenty Twelve: theme's figcaption styles do not apply in the editor

Reported by: nidhidhandhukiya's profile nidhidhandhukiya Owned by:
Milestone: 6.9 Priority: normal
Severity: normal Version: 5.8
Component: Bundled Theme Keywords: has-patch
Focuses: css Cc:

Description

Steps to reproduce the issue.

  1. Activate Twenty twelve theme.
  2. Choose table block.
  3. Add some text and caption.
  4. Now check that in editor and front end.

Caption in table is aligned center in editor but aligned left in the front end which is not looking good.

Attachments (2)

63073.patch (420 bytes) - added by nidhidhandhukiya 7 weeks ago.
63073.1.patch (855 bytes) - added by sabernhardt 7 weeks ago.
adjusts editor-blocks to reflect theme's figcaption styles with the revised class order, using text-align: start to work around the missing .rtl class within the iframe

Download all attachments as: .zip

Change History (3)

@sabernhardt
7 weeks ago

adjusts editor-blocks to reflect theme's figcaption styles with the revised class order, using text-align: start to work around the missing .rtl class within the iframe

#1 @sabernhardt
7 weeks ago

  • Focuses css added
  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 6.9
  • Summary changed from Twenty twelve table block having issue in caption alignment. to Twenty Twelve: theme's figcaption styles do not apply in the editor
  • Version set to 5.8

Similar to #58539, the discrepancy can happen with any figcaption for blocks (including Image, Video, Embed and Table).

Twenty Twelve specified left alignment and other styles for the front end, and the editor styles should honor those again by accounting for classes before the one that begins with wp-block-.

Note: See TracTickets for help on using tickets.