Skip to content

Commit 52a6cbe

Browse files
RVZO6claude
andcommitted
fix(mobile): disabled send arrow no longer darkens where its strokes overlap
The disabled icon used a 38% tint. The Android arrow is three SVG strokes that meet at the tip, so the alpha stacked there. Use an opaque tint and fade the whole icon with view opacity instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 4a5251b commit 52a6cbe

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,13 @@ export function ComposerActionButton(props: {
282282
name={props.icon}
283283
size={props.size === "large" ? Math.round(20 * scale) : smallIconSize}
284284
weight="semibold"
285+
// Fade the whole icon: a translucent tint stacks where the SVG strokes overlap.
286+
className={props.disabled && props.variant !== "danger" ? "opacity-38" : undefined}
285287
tintColorClassName={
286288
props.variant === "danger"
287289
? "accent-danger-foreground"
288290
: props.disabled
289-
? "accent-foreground/38"
291+
? "accent-foreground"
290292
: "accent-primary-foreground"
291293
}
292294
type="monochrome"

0 commit comments

Comments
 (0)