html-sketchapp/html-sketchapp
在 GitHub 查看Text element with nested element that needs to wrap, overlaps layers in sketch
Open
#179 创建于 2019年11月1日
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:

screenshot from Sketch:

(please ignore the funky icons 😁 )