Skip to main content

Text decoration being lost if applied in components

  • October 14, 2024
  • 4 replies
  • 113 views

Michal_Sikora

Hello.
I highly appreciate the new feature allowing us to use the text-decoration simply with the keyboard shortcuts.

However, I’ve noticed that when applying text-decoration using shortcuts like cmd+b or cmd+u within components, the styling does not save properly. For example, if I bold the label in a button using cmd+b and later try use it and change the label text property, the bold formatting is removed. The same issue occurs with underline on hover effects - e.g. when I underline text for hover states using cmd+u, the underline is lost.

While it was a relief that I don’t longer have to create all possible text-decoration variations as the separate text styles in my design system (like: “Body/Bold, Body/Bold Underline” etc.), now I feel like I should go back to this more time-consuming approach.

Please consider this feedback or let me know if there’s a flaw in my workflow.

4 replies

Shiv
  • New Participant
  • 10 replies
  • March 3, 2025

I’m running into this issue too. Did you ever find a solution to this, ​@Michal_Sikora?


Michal_Sikora
Shiv wrote:

I’m running into this issue too. Did you ever find a solution to this, ​@Michal_Sikora?

 

No, unfortunately, I didn’t


Natasha S
  • New Member
  • 1 reply
  • March 26, 2025

Same issue. If there is a text decoration applied to a component - e.g. Link, the decoration dissapears either already when you change the text in an instance of a link, or is shown in Design mode, but dissapears in Prototype mode. 

Any prognosis on when the bug will be fixed?


Shiv
  • New Participant
  • 10 replies
  • April 3, 2025

The only solution I’ve found is to create the underline using a shape or frame and then turning it off/on as needed in your variants. Unfortunately this is a bandaid solution and doesn’t have nice features the native underline does like skipping descenders for example.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings