From d63c8d25f7edf8eb53bf6723e890abe311b91cfa Mon Sep 17 00:00:00 2001 From: Aarav Sareen <96787824+arvsrn@users.noreply.github.com> Date: Tue, 20 Oct 2026 12:35:36 +0530 Subject: [PATCH] fix(tui): use faint secondary text in list dialogs (#56094) --- packages/tui/src/ui/dialog-select.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/tui/src/ui/dialog-select.tsx b/packages/tui/src/ui/dialog-select.tsx index 6756bfa2666..c2d5c930b6b 100644 --- a/packages/tui/src/ui/dialog-select.tsx +++ b/packages/tui/src/ui/dialog-select.tsx @@ -837,8 +837,11 @@ function DialogSelectRow(props: { if (props.current && !newDesigns()) return theme.text.formfield.selected return theme.text.base }) - // Secondary text (description and footer) on the highlighted row. - const secondary = () => (newDesigns() ? theme.text.action.secondary.focused : text()) + // Secondary text (description and footer). + const secondary = () => { + if (!newDesigns()) return props.active ? text() : theme.text.muted + return props.active ? theme.text.action.secondary.focused : theme.text.faint + } const row = () => ( // A marker or gutter takes its cell plus the row gap out of the left padding, @@ -881,12 +884,12 @@ function DialogSelectRow(props: { ? Locale.truncateLeft(props.title, props.titleWidth ?? 61) : Locale.truncate(props.title, props.titleWidth ?? 61))} - {" " + props.description} + {" " + props.description} - {props.footer} + {props.footer}