diff options
| author | christine betts <[email protected]> | 2025-08-21 22:29:15 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-21 22:29:15 +0000 |
| commit | 10286934e6a549dcad557adecfc087552e13c983 (patch) | |
| tree | fe6a61cf3158918253d18d891dab52f4c9b7a33b /packages/cli/src/ui/components/InputPrompt.tsx | |
| parent | 679acc45b222986032a01aebbffcddf756573f14 (diff) | |
Introduce initial screen reader mode handling and flag (#6653)
Diffstat (limited to 'packages/cli/src/ui/components/InputPrompt.tsx')
| -rw-r--r-- | packages/cli/src/ui/components/InputPrompt.tsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/cli/src/ui/components/InputPrompt.tsx b/packages/cli/src/ui/components/InputPrompt.tsx index 01666c66..215962ce 100644 --- a/packages/cli/src/ui/components/InputPrompt.tsx +++ b/packages/cli/src/ui/components/InputPrompt.tsx @@ -26,6 +26,7 @@ import { cleanupOldClipboardImages, } from '../utils/clipboardUtils.js'; import * as path from 'path'; +import { SCREEN_READER_USER_PREFIX } from '../constants.js'; export interface InputPromptProps { buffer: TextBuffer; @@ -688,7 +689,12 @@ export const InputPrompt: React.FC<InputPromptProps> = ({ > {shellModeActive ? ( reverseSearchActive ? ( - <Text color={theme.text.link}>(r:) </Text> + <Text + color={theme.text.link} + aria-label={SCREEN_READER_USER_PREFIX} + > + (r:){' '} + </Text> ) : ( '! ' ) |
