Commit 1aeaaf3
authored
fix(NavItem): do not include aria-controls if the related element is not mounted (#40)
* test(TabContainerSpec): converted to use @testing-library/react
* test(ModalSpec): re-enables 'Focused state' tests
* fix(NavItem): do not include aria-controls if the related TabPanel is not mounted because of unmountOnExit
When using `unmountOnExit`, the inactive TabPanels are not mounted, therefore the aria-controls in NavItem would refer an element that doesn't exist.
* fix(NavItem): include aria-controls only for the active TabPanel when mountOnEnter is enabled1 parent 9ef5110 commit 1aeaaf3
File tree
4 files changed
+249
-180
lines changed- src
- test
4 files changed
+249
-180
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
71 | | - | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
75 | 88 | | |
76 | 89 | | |
77 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
| 339 | + | |
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| |||
This file was deleted.
0 commit comments