Skip to content

DBLink leading/trailing whitespace when using icons #4072

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 of 7 tasks
nfellinger opened this issue Apr 17, 2025 · 1 comment
Open
1 of 7 tasks

DBLink leading/trailing whitespace when using icons #4072

nfellinger opened this issue Apr 17, 2025 · 1 comment
Labels

Comments

@nfellinger
Copy link

nfellinger commented Apr 17, 2025

Which generators are impacted?

  • All
  • HTML
  • React
  • Angular
  • Vue
  • Web components
  • Power Apps

Reproduction case

Using the vanilla db-link component with the default icon causes whitespace to appear after the link text which becomes visible through the underline. Additonally, when using a data-icon, this also happens at the start of the link text. This problem can be seen in "Test Link 1-3" in the attached screenshot. This Problem doesn't occur if no icons are present like in "Test Link 4"

<div>
  <db-link data-icon="question_mark_circle">
    Test Link 1
  </db-link>
</div>
<div>
  <db-link>
    Test Link 2
  </db-link>
</div>
<div>
  <db-link data-icon="question_mark_circle" [showIcon]="false">
    Test Link 3
  </db-link>
</div>
<div>
  <db-link [showIcon]="false">
    Test Link 4
  </db-link>
</div>nk>
</div>

Image

Expected Behaviour

There should be no leading or trailing whitespace around the link text when using icons.

Screenshots

No response

Browser version

Chrome

Add any other context about the problem here.

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants