Commit aaee156
fix: Use tabIndex={-1} to avoid breaking focus traps in Adaptive Cards
tabIndex={0} added an extra tab stop inside the card's focus trap,
causing SHIFT-TAB from card controls to land on the attachment row
instead of the expected element. Using tabIndex={-1} makes the row
programmatically focusable (for screen readers via virtual cursor)
without adding it to the Tab order.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 9a1279e commit aaee156
File tree
2 files changed
+4
-4
lines changed- __tests__/html2/accessibility/adaptiveCard
- packages/component/src/Activity
2 files changed
+4
-4
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | | - | |
64 | | - | |
| 63 | + | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments