fix(folio): use account_card:id desc, expose balance via text semantics

This commit is contained in:
pj committed 2026-04-25 23:33:24 +07:00
1 parent ff79aa445f
commit 5f197917d8
1 file changed
+7 -2
@@ -123,7 +123,7 @@ private fun AccountCard(
.clip(RoundedCornerShape(RadiusLg)) .clip(RoundedCornerShape(RadiusLg))
.background(t.surface) .background(t.surface)
.border(1.dp, t.border, RoundedCornerShape(RadiusLg)) .border(1.dp, t.border, RoundedCornerShape(RadiusLg))
.semantics(mergeDescendants = true) { contentDescription = "account:$id:$balance" } .semantics { contentDescription = "account_card:$id" }
.clickable(role = Role.Button, onClick = onClick) .clickable(role = Role.Button, onClick = onClick)
.padding(16.dp), .padding(16.dp),
verticalAlignment = Alignment.CenterVertically, verticalAlignment = Alignment.CenterVertically,
@@ -148,6 +148,11 @@ private fun AccountCard(
) )
Text(txnLabel, style = Type.caption, color = t.textMuted) Text(txnLabel, style = Type.caption, color = t.textMuted)
} }
Text(formatCents(balance), style = Type.bodyStrong, color = t.text) Text(
formatCents(balance),
style = Type.bodyStrong,
color = t.text,
modifier = Modifier.semantics { contentDescription = "account_balance" },
)
} }
} }