fix: use concrete tertiary color for row chevrons inside tinted buttons

This commit is contained in:
2026-06-12 18:43:59 -04:00
parent e91d8344a9
commit 05d48a9f34
3 changed files with 5 additions and 4 deletions

View File

@@ -102,8 +102,9 @@ Gotchas learned the hard way:
.combine)` (or a Button/control) to be queryable.
- List/Form section headers render uppercased unless `.textCase(nil)` —
tests assert exact header strings.
- Inside tinted Button rows, hierarchical `.primary`/`.secondary` foreground
styles resolve to the tint; use concrete `Color.primary`/`Color.secondary`.
- Inside tinted Button rows, hierarchical `.primary`/`.secondary`/`.tertiary`
foreground styles resolve to the tint (e.g. blue chevrons); use concrete
`Color.primary`/`Color.secondary`/`Color(.tertiaryLabel)`.
- The unblock confirmation dialog is queried via `app.sheets.buttons[...]`
(a bare `buttons["Unblock"]` is ambiguous with the row label).

View File

@@ -80,7 +80,7 @@ struct NewRuleSheet: View {
Spacer()
Image(systemName: "chevron.right")
.font(.caption.weight(.semibold))
.foregroundStyle(.tertiary)
.foregroundStyle(Color(.tertiaryLabel))
}
}
.accessibilityIdentifier("ruleKind-\(kind.rawValue)")

View File

@@ -216,7 +216,7 @@ struct RuleEditorView: View {
.foregroundStyle(Color.secondary)
Image(systemName: "chevron.right")
.font(.caption.weight(.semibold))
.foregroundStyle(.tertiary)
.foregroundStyle(Color(.tertiaryLabel))
}
}
.accessibilityIdentifier("selectedAppsRow")