Skip to content

Commit fb953d9

Browse files
committed
cli: Fix input color
1 parent 8e0eb2c commit fb953d9

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

cli/src/components/multiline-input.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -583,12 +583,9 @@ export const MultilineInput = forwardRef<
583583
const textStyle: Record<string, unknown> = {
584584
bg: 'transparent',
585585
fg: inputColor,
586-
}
587-
588-
if (isPlaceholder) {
589-
textStyle.attributes = TextAttributes.DIM
590-
} else if (textAttributes !== undefined && textAttributes !== 0) {
591-
textStyle.attributes = textAttributes
586+
attributes: isPlaceholder
587+
? TextAttributes.DIM
588+
: textAttributes ?? TextAttributes.NONE,
592589
}
593590

594591
const cursorFg = theme.info

0 commit comments

Comments
 (0)