Skip to main content

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?

 

 


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.


Reply