Skip to content

Commit 766870d

Browse files
RVZO6claude
andcommitted
fix(mobile): disabled send button is readable in Material You dark
The disabled composer action drew the onPrimary icon over a 15% primary tint. onPrimary is dark in dark schemes, so the arrow nearly vanished. Use the Material 3 disabled colors instead: onSurface at 12% for the container and 38% for the icon. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent b5a226e commit 766870d

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎apps/mobile/src/components/ComposerToolbar.tsx‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,16 +282,22 @@ export function ComposerActionButton(props: {
282282
props.variant === "danger"
283283
? "bg-danger"
284284
: props.disabled
285-
? "bg-primary/15"
285+
? "bg-foreground/12"
286286
: "bg-primary",
287287
)}
288288
>
289289
<SymbolView
290290
name={props.icon}
291291
size={smallIconSize}
292292
weight="semibold"
293+
// Disabled follows Material 3 (onSurface at 12% / 38%): the primary foreground is
294+
// chosen against solid primary, so it vanishes on a faint primary tint.
293295
tintColorClassName={
294-
props.variant === "danger" ? "accent-danger-foreground" : "accent-primary-foreground"
296+
props.variant === "danger"
297+
? "accent-danger-foreground"
298+
: props.disabled
299+
? "accent-foreground/38"
300+
: "accent-primary-foreground"
295301
}
296302
type="monochrome"
297303
/>

0 commit comments

Comments
 (0)