You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I'm hoping you could clear up some confusion I have around how text nodes are handled. Is the intent to always set styling on a text element and explicitly set the content prop of that element? I think I was expecting string child nodes to be set as the content of the parent.
<text fg="green">I'm not green!</text>
...
<text fg="green" content="I'm green!" />
I also tried to style my text nodes using the tag syntax but found that didn't work either:
Hey, I'm hoping you could clear up some confusion I have around how text nodes are handled. Is the intent to always set styling on a
text
element and explicitly set thecontent
prop of that element? I think I was expecting string child nodes to be set as the content of the parent.I also tried to style my text nodes using the tag syntax but found that didn't work either:
It looks like the latter can be accomplished by setting
tags: true
when react-blessed internally creates the text instances here https://github.com/Yomguithereal/react-blessed/blob/master/src/fiber/fiber.js#L102The text was updated successfully, but these errors were encountered: