[wp-trac] [WordPress Trac] #31396: linked image does not take on the class of the inner image and its justification
WordPress Trac
noreply at wordpress.org
Fri Feb 20 18:40:13 UTC 2015
#31396: linked image does not take on the class of the inner image and its
justification
---------------------------+-----------------------------
Reporter: shamai | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version: 4.1.1
Severity: normal | Keywords:
Focuses: accessibility |
---------------------------+-----------------------------
if you put an image in the wordpress editor and press justify left
the image is justified left with a class of "alignleft"
However if you now link the image the outer anchor DOES NOT get the class
alignleft. and the image won't align left unless the anchor is set to
inline.
what if its not?
For stylistic purposes this is bad. The anchor should float left NOT the
image. Otherwise the anchor collapses and is not easily styllable.
there are some stuff you can't do to an image like add pseudo elements.
and if the anchor doesn't have the "align left" its annoying and difficult
to work with.
the link should get the alignleft class. It creates more flexibility for
us theme developers.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31396>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list