Skip to content

fix(txn-details): match "View in Chat" to the cards it sits under - #1434

Merged
bmc08gt merged 2 commits into
code/cashfrom
fix/txn-details-view-in-chat-tint
Sep 8, 2026
Merged

bmc08gt merged 2 commits into
code/cashfrom
fix/txn-details-view-in-chat-tint

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Sep 8, 2026 •

Copy link
Copy Markdown
Collaborator

The "View in Chat" button on Transaction Details doesn't match the cards directly above it, on two counts.

Fill. It used ButtonState.Filled10 → White10 (0x1AFFFFFF), while DetailsCard — the panel behind both the receipt card and the ID card — uses White05 (0x0CFFFFFF).

Corner radius. CodeButton defaults to CodeTheme.shapes.small (8dp); DetailsCard uses extraSmall (6dp).

Figma 9708:118142 holds all three as siblings — receipt card 9708:118165, ID card 9708:118143, button 9708:118123 — and gives every one of them rgba(255,255,255,0.05) and rounded-[6px]. All three are even named "Button" in the file. The point of the design is that the button reads as a fourth card in the stack rather than as a control sitting on top of them. The two cards were already correct; only the button had drifted, so this is button-only and not screen-wide. Height needed no change — Figma's 60px is what it already rendered.

CodeButton takes its background solely from ButtonState.colors() and exposes no per-call background override, so no existing state could express the card fill. This adds ButtonState.Filled05 next to Filled10. Filled10 itself is untouched, so its other caller — the action button in Callout — is unaffected. The radius is a per-call shape argument, which CodeButton already supports.

This mirrors the iOS side, which added a .filled05 style for the same discrepancy in code-payments/code-ios-app#739.

The module's TransactionDetailsScreenshotTest renders PNGs for eyeballing rather than asserting against checked-in goldens, so there were no reference images to update.

The button used ButtonState.Filled10, i.e. White10 (0x1AFFFFFF), while the
receipt and ID cards directly above it use White05 (0x0CFFFFFF) via
DetailsCard. Figma 9708:118123 gives the button rgba(255,255,255,0.05) — the
card fill — so it reads as a fourth card in the stack rather than as a
separate control. The two cards were already correct; only the button drifted.

CodeButton takes its background solely from ButtonState.colors(), with no
per-call override, so expressing the card fill needs a new state. Filled05 is
added alongside Filled10, which Callout still uses and which is unchanged.

Mirrors the iOS .filled05 added in code-payments/code-ios-app#739.
@bmc08gt bmc08gt self-assigned this Sep 8, 2026
@github-actions github-actions Bot added area: ui Compose UI, theme, components, resources type: fix Bug fix labels Sep 8, 2026
CodeButton defaults to CodeTheme.shapes.small (8dp); DetailsCard uses
extraSmall (6dp). Figma 9708:118142 gives all three siblings — receipt card,
ID card, button — rounded-[6px], so the button was the odd one out on corners
as well as fill.
@bmc08gt
bmc08gt merged commit e73c558 into code/cash Sep 8, 2026
3 checks passed
@bmc08gt
bmc08gt deleted the fix/txn-details-view-in-chat-tint branch September 23, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ui Compose UI, theme, components, resources type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant