From 9efcb7741be7f9c31e66943248e40af441403fc4 Mon Sep 17 00:00:00 2001 From: Miguel Solorio Date: Thu, 15 May 2025 14:36:34 -0700 Subject: Update color styles for yes/no questions (#369) --- .../cli/src/ui/components/shared/RadioButtonSelect.tsx | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'packages/cli/src/ui/components/shared/RadioButtonSelect.tsx') diff --git a/packages/cli/src/ui/components/shared/RadioButtonSelect.tsx b/packages/cli/src/ui/components/shared/RadioButtonSelect.tsx index 377be3e3..5cd25c7c 100644 --- a/packages/cli/src/ui/components/shared/RadioButtonSelect.tsx +++ b/packages/cli/src/ui/components/shared/RadioButtonSelect.tsx @@ -76,19 +76,11 @@ export function RadioButtonSelect({ function DynamicRadioIndicator({ isSelected = false, }: InkSelectIndicatorProps): React.JSX.Element { - let indicatorColor = Colors.Foreground; // Default for not selected - if (isSelected) { - if (isFocused) { - // Group is focused, selected item is AccentGreen - indicatorColor = Colors.AccentGreen; - } else { - // Group is NOT focused, selected item is Foreground - indicatorColor = Colors.Foreground; - } - } return ( - {isSelected ? '●' : '○'} + + {isSelected ? '●' : '○'} + ); } @@ -109,7 +101,7 @@ export function RadioButtonSelect({ let textColor = Colors.Foreground; if (isSelected) { - textColor = isFocused ? Colors.AccentGreen : Colors.Foreground; + textColor = Colors.AccentGreen; } if ( -- cgit v1.2.3