question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Link with icon] Web components: icon position when text wraps to 2 lines

See original GitHub issue

Currently link with icon is not showing the correct behavior when link text wraps to 2 lines. Icon snaps to right-aligned to the container, and creates a weird gap between text and icon. This could happen when text is too long, or when screen size is narrow, and is influencing several dependent components such as Link list, Link list section, and Content group banner

This is similar problem to (#5740 )

Current

Apr-02-2021 16-52-42.gif

image.png

Proposed design & spec

image.png

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
shixiedesigncommented, Aug 2, 2021

Hey @emyarod yep that is the expected behavior. Unfortunately there are awkward moments (when 1 arrow breaks to line 2 before the other one).

I think if there’s possibility to have an “orphan” logic so the arrows is always gonna be attached to 1 word with it, it could be nice. Lemme know if that’s even possible. If so, I can add a feature request for the team to look at.

0reactions
RobertaJHahncommented, Aug 9, 2021

Bug must also be fixed in React. Issue (#6837 ) has been created to manage that work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Place icon after two lines line with text-overflow ellipsis without ...
I removed the white space value and added a font size of 1em. Then I set a max height of 2em that will...
Read more >
Align SVG Icons to Text and Say Goodbye to Font Icons
The icons align to your text easily and can be modified by changing the font-size of the element. There is no clearly defined...
Read more >
Material Symbols and Icons - Google Fonts
Introducing Material Symbols. Material Symbols are our newest icons consolidating over 2,500 glyphs in a single font file with a wide range of...
Read more >
Handling Long and Unexpected Content in CSS
There is an icon on the right side to emphasize that it is clickable. However, when the area is not big enough, the...
Read more >
Rich Text Component - Appian 21.2
The help icon does not show when the label position is "COLLAPSED" . Accessibility Text ... Determines if wrapping to multiple lines will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found