html-sketchapp/html-sketchapp

Text element with nested element that needs to wrap, overlaps layers in sketch

Open

#179 创建于 2019年11月1日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)JavaScript (1,845 star) (158 fork)batch import
bughelp wanted

描述

When a text element has child elements like a link or span, and needs to wrap, the text layers are placed on top of one another.

html-sketchapp version: 4.3.0

minimal example:

<p>
  <a href="/contact-us">Visit our Contact Us page</a> to find retail centres, opening hours and more.
</p>

I've seen the same behaviour with divs and spans too:

<div>
  Lorem ipsum dolor ist amet <span>integer velit luctus hac nunc adipiscing</span> eget enim consectetur maecenas libero iaculis.
</div>

screenshot from the browser: image

screenshot from Sketch: image

(please ignore the funky icons 😁 )

贡献者指南