Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
matteason
· 4mo ago · 0 comments
They're usually done with SVGs or CSS pseudoelements (a clip-path polygon or borders and rotation) rather than Unicode arrows
Comments
[–]
wuhhh
4mo ago
Exactly, text content goes in a <span>, icon is an <svg>, flex align items center on the wrapper gets you close, nudge the icon to perfection with transform: translate
[–]
reaperducer
4mo ago
And then the line wraps.
[–]
wuhhh
4mo ago
Alright I’ll take the bait, flex shrink none on the svg, white space no wrap on the text