Repository navigation
Commit c99ad4a
authored
test(DropdownMenu): radio-item and sub-menu audits expect a disabled row in the roving order (#10622)
* test(DropdownMenu): the radio-item and sub-menu audits expect a disabled row in the roving order
A disabled row now keeps tabindex=-1 so the arrow keys reach it, and it
stays inert. Two component audits still expected no tabindex on the
disabled row, so they failed in every theme and state.
* test(DropdownMenu): the radio-item and sub-menu audits press the disabled row and check it stays inert
A click, Enter and Space on the disabled radio row neither check it nor
reach the consumer's handler. A click, Enter, Space and the open key on
the disabled sub-menu trigger open no flyout and pick nothing.
* test(DropdownMenu): the sub-menu audit checks the disabled trigger stays collapsed
* Merge branch 'main' into fix/menu-audits-disabled-row-tabindex
* Merge branch 'main' into fix/menu-audits-disabled-row-tabindex1 parent 7e82663 commit c99ad4a
2 files changed
Lines changed: 30 additions & 3 deletions
File tree
- packages/core/src/DropdownMenu/__tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
219 | 231 | | |
220 | 232 | | |
221 | 233 | | |
| |||
458 | 470 | | |
459 | 471 | | |
460 | 472 | | |
| 473 | + | |
461 | 474 | | |
462 | 475 | | |
463 | | - | |
| 476 | + | |
464 | 477 | | |
465 | 478 | | |
466 | 479 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
283 | 296 | | |
284 | 297 | | |
285 | 298 | | |
| |||
607 | 620 | | |
608 | 621 | | |
609 | 622 | | |
610 | | - | |
| 623 | + | |
| 624 | + | |
611 | 625 | | |
612 | 626 | | |
613 | 627 | | |
| |||
0 commit comments