mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
feat(folio): add hierarchy content descriptions to LedgerScreen
This commit is contained in:
1 parent
10f7143013
commit
cfb7131d96
1 file changed
+3
-1
+3
-1
@@ -92,6 +92,8 @@ fun LedgerScreen(accountId: String) {
|
|||||||
)
|
)
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
|
Box(Modifier.size(1.dp).semantics { contentDescription = "active_account:$accountId" })
|
||||||
|
Box(Modifier.size(1.dp).semantics { contentDescription = "ledger_balance:$balance" })
|
||||||
Card {
|
Card {
|
||||||
Text("BALANCE", style = Type.label, color = t.textMuted)
|
Text("BALANCE", style = Type.label, color = t.textMuted)
|
||||||
Text(formatCents(balance), style = Type.balance, color = t.text)
|
Text(formatCents(balance), style = Type.balance, color = t.text)
|
||||||
@@ -136,7 +138,7 @@ private fun TxnRow(id: String, type: TxnType, amount: Long, note: String, date:
|
|||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.padding(vertical = 14.dp)
|
.padding(vertical = 14.dp)
|
||||||
.semantics(mergeDescendants = true) { contentDescription = "txn_row:$id" },
|
.semantics(mergeDescendants = true) { contentDescription = "ledger_row:$id:$signed" },
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
horizontalArrangement = Arrangement.spacedBy(12.dp),
|
horizontalArrangement = Arrangement.spacedBy(12.dp),
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in new issue
Block a user