[wp-trac] [WordPress Trac] #47937: Twenty Nineteen: Center-aligned images in columns break beyond the column boundaries.

WordPress Trac noreply at wordpress.org
Mon Aug 26 18:29:47 UTC 2019


#47937: Twenty Nineteen: Center-aligned images in columns break beyond the column
boundaries.
---------------------------+---------------------------------------
 Reporter:  kjellr         |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:
 Severity:  normal         |   Keywords:  has-patch has-screenshots
  Focuses:                 |
---------------------------+---------------------------------------
 As reported over in the Gutenberg repository:
 https://github.com/WordPress/gutenberg/issues/15832

 ----

 Center-aligned images within columns in Twenty Nineteen inherit an
 incorrect max-width, which forces them to extend beyond the column itself:

 [[Image(http://cldup.com/F2p0YCC06A.png)]]

 The attached patch corrects this by limiting the `max-width` of the
 image's `figure` wrapper to 100%:

 [[Image(http://cldup.com/HjxyxCdr0g.png)]]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47937>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list