From cfb7131d965fe9616a323c0f2c979fe921ef490d Mon Sep 17 00:00:00 2001 From: PJ Date: Sat, 25 Apr 2026 19:18:51 +0700 Subject: [PATCH] feat(folio): add hierarchy content descriptions to LedgerScreen --- .../kotlin/app/folio/feature/ledger/LedgerScreen.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/folio/composeApp/src/commonMain/kotlin/app/folio/feature/ledger/LedgerScreen.kt b/examples/folio/composeApp/src/commonMain/kotlin/app/folio/feature/ledger/LedgerScreen.kt index 633ce95..e6d4273 100644 --- a/examples/folio/composeApp/src/commonMain/kotlin/app/folio/feature/ledger/LedgerScreen.kt +++ b/examples/folio/composeApp/src/commonMain/kotlin/app/folio/feature/ledger/LedgerScreen.kt @@ -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 { Text("BALANCE", style = Type.label, color = t.textMuted) 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 .fillMaxWidth() .padding(vertical = 14.dp) - .semantics(mergeDescendants = true) { contentDescription = "txn_row:$id" }, + .semantics(mergeDescendants = true) { contentDescription = "ledger_row:$id:$signed" }, verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(12.dp), ) {