Commit 51ca460
A11y: set explicit AutomationName on CompactSummary header button and body
In the CompactSummary tool-burst style, the header is a standalone Button
and the expanded body (step rows) is a sibling element outside the Button's
automation subtree. This meant Narrator only announced the button's visual
content (a FlexRow with text nodes that may not compose cleanly) without
context about the task state.
Changes:
- Build a headerAutomationName string: "<summary>, <N step(s)>, <status>,
expanded/collapsed" and pass it to .AutomationName() on headerButton.
Narrator now announces the full card state when the button is focused.
- Add .AutomationName("Tool steps for: <summary>") on the body Border so
scan-mode navigation gives the body region a clear label linking it back
to the task the header describes.
Fixes #590
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent eb06fba commit 51ca460
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2053 | 2053 | | |
2054 | 2054 | | |
2055 | 2055 | | |
2056 | | - | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
2057 | 2068 | | |
2058 | 2069 | | |
2059 | 2070 | | |
| |||
2072 | 2083 | | |
2073 | 2084 | | |
2074 | 2085 | | |
| 2086 | + | |
| 2087 | + | |
2075 | 2088 | | |
2076 | 2089 | | |
| 2090 | + | |
2077 | 2091 | | |
2078 | 2092 | | |
2079 | 2093 | | |
| |||
0 commit comments