Repository navigation
Commit b5fc86f
committed
fix: remove role="button" from li elements
role="button" on <li> inside <ul> violates axe aria-allowed-role and
list rules, which breaks downstream a11y test suites (e.g. antd CI on
every component rendering Pagination). Remove the invalid role while
keeping all a11y improvements from #690: aria-label, aria-current,
aria-disabled and keyboard activation.1 parent a7dd4cb commit b5fc86f
5 files changed
Lines changed: 9 additions & 298 deletions
File tree
- src
- tests
- __snapshots__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | | - | |
486 | 485 | | |
487 | 486 | | |
488 | 487 | | |
| |||
499 | 498 | | |
500 | 499 | | |
501 | 500 | | |
502 | | - | |
503 | 501 | | |
504 | 502 | | |
505 | 503 | | |
| |||
581 | 579 | | |
582 | 580 | | |
583 | 581 | | |
584 | | - | |
585 | 582 | | |
586 | 583 | | |
587 | 584 | | |
| |||
611 | 608 | | |
612 | 609 | | |
613 | 610 | | |
614 | | - | |
615 | 611 | | |
616 | 612 | | |
617 | 613 | | |
| |||
0 commit comments