summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/shared/RadioButtonSelect.tsx
diff options
context:
space:
mode:
authorMiguel Solorio <[email protected]>2025-05-15 14:36:34 -0700
committerGitHub <[email protected]>2025-05-15 14:36:34 -0700
commit9efcb7741be7f9c31e66943248e40af441403fc4 (patch)
treed4f9e0184dd4900b14b74f7c9819026a45c5daad /packages/cli/src/ui/components/shared/RadioButtonSelect.tsx
parent6cd8f66a761f48c59ccede0fc8d00a31b262fcf7 (diff)
Update color styles for yes/no questions (#369)
Diffstat (limited to 'packages/cli/src/ui/components/shared/RadioButtonSelect.tsx')
-rw-r--r--packages/cli/src/ui/components/shared/RadioButtonSelect.tsx16
1 files changed, 4 insertions, 12 deletions
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<T>({
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 (
<Box marginRight={1}>
- <Text color={indicatorColor}>{isSelected ? '●' : '○'}</Text>
+ <Text color={isSelected ? Colors.AccentGreen : Colors.Foreground}>
+ {isSelected ? '●' : '○'}
+ </Text>
</Box>
);
}
@@ -109,7 +101,7 @@ export function RadioButtonSelect<T>({
let textColor = Colors.Foreground;
if (isSelected) {
- textColor = isFocused ? Colors.AccentGreen : Colors.Foreground;
+ textColor = Colors.AccentGreen;
}
if (