[wp-trac] [WordPress Trac] #41130: Link boundaries for links contaning images look bad

WordPress Trac noreply at wordpress.org
Thu Jun 22 18:31:42 UTC 2017


#41130: Link boundaries for links contaning images look bad
--------------------------+-----------------------------
 Reporter:  mahu2401      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  4.8
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In 4.8, the new link boundaries were introduced. For normal links they are
 fine and they highlight the link really nice.

 But if there's an image (inline-block element) in the link, the link
 boundaries look quite ugly. This is the case when you embed an image from
 the media library. The following code was used to generate the screenshot:

 {{{
 [caption id="..." align="alignnone" width="300"]<a href="IMAGE_FILE"><img
 class="size-medium ..." src="IMAGE_FILE" alt="Test" width="300"
 height="200" /></a> Test[/caption]
 }}}

 If you click on the image, two narrow link boundary markers appear above
 and below the image (see screenshot). These are taking up extra vertical
 space, so the image 'jumps' a bit.

 Maybe it would be the best to disable the link boundary feature for links
 containing only images, in my opinion they don't provide any useful
 information and may irritate the user.

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


More information about the wp-trac mailing list