Skip to content

Broken Truncate and/or Broken Anchor Underline styling #854

Answered by TheSisb
vankhoawin asked this question in Q&A
Discussion options

You must be logged in to vote

It's not terribly clear and we should make the docs a bit better. Truncate adds a span to the DOM, and if you put a span inside an anchor element, the underline won't inherit. Therefore you should wrap the Anchor with the Truncate component.

Your third example looks fine when I remove the inline-style {{display: "flex"}}:

Did I understand correctly?

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@vankhoawin
Comment options

Answer selected by vankhoawin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants