Skip to main content
Question

Text decoration z-index, text highlighting

  • February 14, 2025
  • 2 replies
  • 50 views

Very Good Murph

This may be a hacky way to achieve what should probably be a standalone text decoration style (highlight)… but with the addition of underline styling, you can basically setup a highlight

The issue is that the underline appears over the text. 

It would be great to have to option to set the position or z-index of the underline to appear behind the text?

 

2 replies

tank666
  • February 14, 2025

 


Very Good Murph

Thanks Tank! Krystian’s approach is nice - and works for me, but it still requires 2 styles in order to achieve the end result.

My question was more on requesting the ability to set the z-index of an underline, similar to the settings for skip ink - so selecting over text or under text. Wouldn’t seem to difficult to add to the API.

Though a dedicated highlight decoration type with similar capabilities may be more straightforward.