Anyway to change the underline color on text block?

Hi guys,

I can add underline to my text in a text block, but it is always white. I was wondering if I could change it to make it match the text color? Any help would be greatly appreciated. Thank you!

cc @DarraghBurke

The TextBlock control does not currently support changing the color of the underline. However, you can pretty easily extend it to support this:

Change underline color of text block | Babylon.js Playground (

The main thing is just to set the strokeStyle in _applyStates, because TextBlock uses a stroke to render the underline.

Canvas is getting support for the full textDecoration property of CSS soon, so we will probably add this to GUI sometime in the next year


Hello @Steven_Billingslea just checking in, was your question answered? :smiley: