Commit 6d4a983
committed
fix(ui-a11y-utils): fix focus region skipping items after Drilldown/scrollbars
The core of the issue is that findFocusable cannot detect everything that can be focused reliably,
e.g. browsers now focus on DOM elements that have scrollbars. The deleted code added the element
with the scrollbar to the end of the focus region array, causing anything after it skipped when
tabbing. The downside of deleting this code is that focus order breaks when the last element in a
Popover/Modal is something that findFocusable does not detect e.g. a Menu (without a trigger,
this is not detected because its tabIndex changes dynamically)
Fixes INSTUI-46941 parent b94c875 commit 6d4a983
File tree
4 files changed
+14
-18
lines changed- packages/ui-a11y-utils/src
- regression-test
- src/app
- calendar
4 files changed
+14
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | 58 | | |
69 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
70 | 65 | | |
71 | 66 | | |
72 | 67 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
0 commit comments