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
The dimColor line renders as [object Object] instead of its text. color="cyan" (a chalk color) renders fine, so the issue is specific to ink's handling of the boolean style modifiers (dimColor, and likely bold/italic/underline/inverse/strikethrough).
Notes
ink's <Text> maps dimColor to a chalk modifier (chalk.dim) vs color to chalk[color]. The boolean-modifier path produces an object where the string-color path produces a string — points at how the chalk modifier function/proxy is being applied or coerced when compiled natively.
Layout/borders are unaffected — purely a text-styling coercion issue.
Follow-up discovered while landing ink #348 end-to-end (PR #5038).
Repro
Actual
The
dimColorline renders as[object Object]instead of its text.color="cyan"(a chalk color) renders fine, so the issue is specific to ink's handling of the boolean style modifiers (dimColor, and likelybold/italic/underline/inverse/strikethrough).Notes
<Text>mapsdimColorto a chalk modifier (chalk.dim) vscolortochalk[color]. The boolean-modifier path produces an object where the string-color path produces a string — points at how the chalk modifier function/proxy is being applied or coerced when compiled natively.Part of #348.