[wp-trac] [WordPress Trac] #45907: Twenty Nineteen: Right-aligned, uncaptioned images inserted via the Classic Editor do not extend beyond the text column
WordPress Trac
noreply at wordpress.org
Fri Jul 12 13:54:18 UTC 2019
#45907: Twenty Nineteen: Right-aligned, uncaptioned images inserted via the Classic
Editor do not extend beyond the text column
----------------------------------------+-----------------------------
Reporter: kjellr | Owner: (none)
Type: defect (bug) | Status: new
Priority: low | Milestone: Future Release
Component: Bundled Theme | Version: 5.0.2
Severity: normal | Resolution:
Keywords: needs-patch good-first-bug | Focuses:
----------------------------------------+-----------------------------
Comment (by kjellr):
Hi there, @nestor19! Welcome, and thanks for looking into this one.
> Should I focus in the way that HTML is rendered in general? Or should I
focus in Twenty Nineteen theme in particular??
Since this bug is specific to Twenty Nineteen, you'll want to focus on
that in particular. Specifically, the right-alignment styles for images.
The theme currently has some CSS rules which target `.alignright` images
and pull them outside of the content container:
https://core.trac.wordpress.org/browser/trunk/src/wp-
content/themes/twentynineteen/sass/blocks/_blocks.scss#L47
These only target direct children of `entry-content` though, so we'd need
additional CSS rules that accomplish a similar effect, but target the use
case above: where the Classic editor inserts the `alignright` image inside
of `p` tags.
I hope that's helpful! Please let me know if you have any other questions.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45907#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list