mirror of
https://github.com/lahfir/agent-desktop.git
synced 2026-07-27 01:22:16 +00:00
test: track current hover state in fixture
This commit is contained in:
parent
329a8145ff
commit
36b33f5dbb
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ struct ContentView: View {
|
|||
.padding(6)
|
||||
.background(hoverStatus == "hovered" ? Color.yellow.opacity(0.4) : Color.clear)
|
||||
.accessibilityLabel("hover-target")
|
||||
.onHover { inside in if inside { hoverStatus = "hovered" } }
|
||||
.onHover { inside in hoverStatus = inside ? "hovered" : "idle" }
|
||||
StatusReadout(name: "hover-status", value: hoverStatus)
|
||||
|
||||
/// Two controls sharing role and name. Each records a distinct
|
||||
|
|
|
|||
Loading…
Reference in a new issue