Skip to content

Commit 1f93a3d

Browse files
fix(mobile): composer suggestions stay readable over the chat
The @, / and $ suggestion list and the pull request completion list used clear glass, which does not blur. Messages, the group bar and side chats showed through the rows at about a quarter strength. Both lists now use the regular glass the composer already uses, which blurs what is behind them. Suggestion rows also get an explicit accessibility label. VoiceOver read the row icon's symbol name first, as in "Two people, @plan". Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
1 parent a51554a commit 1f93a3d

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎apps/mobile/src/features/pull-requests/PullRequestCompletionSuggestions.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function PullRequestCompletionSuggestions({
6666
const copy = COPY[completions.kind];
6767
return (
6868
<GlassSurface
69-
glassEffectStyle="clear"
69+
glassEffectStyle="regular"
7070
tintColorClassName="accent-glass-surface"
7171
style={{ borderRadius: 16, overflow: "hidden" }}
7272
>

‎apps/mobile/src/features/threads/ComposerCommandPopover.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function PopoverSurface(props: { readonly children: React.ReactNode; readonly st
107107

108108
return (
109109
<GlassSurface
110-
glassEffectStyle="clear"
110+
glassEffectStyle="regular"
111111
tintColorClassName="accent-glass-surface"
112112
style={baseStyle}
113113
>
@@ -193,6 +193,10 @@ const CommandRow = memo(function CommandRow(props: {
193193
return (
194194
<Pressable
195195
accessibilityRole="button"
196+
// Without a label, VoiceOver reads the row icon's symbol name first ("Two people, @plan").
197+
accessibilityLabel={
198+
props.item.description ? `${props.item.label}, ${props.item.description}` : props.item.label
199+
}
196200
onPress={props.onPress}
197201
className="flex-row items-center gap-2.5 border-border px-3.5 py-2.5 active:opacity-60"
198202
style={{ borderBottomWidth: props.isLast ? 0 : StyleSheet.hairlineWidth }}

0 commit comments

Comments
 (0)