mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-22 07:41:23 -07:00
complete
This commit is contained in:
@@ -98,7 +98,7 @@ export function BaseSelectionList<
|
|||||||
const numberColumnWidth = String(items.length).length;
|
const numberColumnWidth = String(items.length).length;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box flexDirection="column">
|
<Box flexDirection="column" aria-role="list">
|
||||||
{/* Use conditional coloring instead of conditional rendering */}
|
{/* Use conditional coloring instead of conditional rendering */}
|
||||||
{showScrollArrows && items.length > maxItemsToShow && (
|
{showScrollArrows && items.length > maxItemsToShow && (
|
||||||
<Text
|
<Text
|
||||||
@@ -137,7 +137,12 @@ export function BaseSelectionList<
|
|||||||
)}.`;
|
)}.`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box key={item.key} alignItems="flex-start">
|
<Box
|
||||||
|
key={item.key}
|
||||||
|
alignItems="flex-start"
|
||||||
|
aria-role="listitem"
|
||||||
|
aria-state={{ checked: isSelected }}
|
||||||
|
>
|
||||||
{/* Radio button indicator */}
|
{/* Radio button indicator */}
|
||||||
<Box minWidth={2} flexShrink={0}>
|
<Box minWidth={2} flexShrink={0}>
|
||||||
<Text
|
<Text
|
||||||
@@ -154,7 +159,6 @@ export function BaseSelectionList<
|
|||||||
marginRight={1}
|
marginRight={1}
|
||||||
flexShrink={0}
|
flexShrink={0}
|
||||||
minWidth={itemNumberText.length}
|
minWidth={itemNumberText.length}
|
||||||
aria-state={{ checked: isSelected }}
|
|
||||||
>
|
>
|
||||||
<Text color={numberColor}>{itemNumberText}</Text>
|
<Text color={numberColor}>{itemNumberText}</Text>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Reference in New Issue
Block a user