mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
fix(folio): use account_card:id desc, expose balance via text semantics
This commit is contained in:
1 parent
ff79aa445f
commit
5f197917d8
1 file changed
+7
-2
+7
-2
@@ -123,7 +123,7 @@ private fun AccountCard(
|
||||
.clip(RoundedCornerShape(RadiusLg))
|
||||
.background(t.surface)
|
||||
.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)
|
||||
.padding(16.dp),
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
@@ -148,6 +148,11 @@ private fun AccountCard(
|
||||
)
|
||||
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" },
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user