Commit cf8640b
feat: add jest-axe accessibility testing and fix ARIA structure issues
- Add jest-axe dependency and comprehensive accessibility test suite
- Fix ARIA structure violations in calendar components:
* Update Day component: role="option" → role="gridcell"
* Add Week component: role="row" for proper table structure
* Update WeekNumber component: add role="gridcell"
* Enhance Month component with conditional roles:
- Use role="listbox" for month/year/quarter pickers
- Use role="table" structure for regular calendar view
* Restructure Calendar to use proper table hierarchy
- Add comprehensive test coverage for all DatePicker variants
- Ensure compatibility with screen readers and assistive technologies
- All 22 accessibility tests now pass
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent c7a14dd commit cf8640b
File tree
9 files changed
+480
-29
lines changed- src
- test
9 files changed
+480
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
839 | 839 | | |
840 | 840 | | |
841 | 841 | | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
842 | 848 | | |
843 | 849 | | |
844 | 850 | | |
| |||
856 | 862 | | |
857 | 863 | | |
858 | 864 | | |
859 | | - | |
860 | | - | |
861 | | - | |
862 | 865 | | |
863 | 866 | | |
864 | 867 | | |
| |||
1030 | 1033 | | |
1031 | 1034 | | |
1032 | 1035 | | |
| 1036 | + | |
1033 | 1037 | | |
1034 | 1038 | | |
1035 | 1039 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
600 | | - | |
| 600 | + | |
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| |||
1101 | 1102 | | |
1102 | 1103 | | |
1103 | 1104 | | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
1104 | 1126 | | |
1105 | 1127 | | |
1106 | | - | |
1107 | | - | |
1108 | | - | |
1109 | | - | |
1110 | | - | |
1111 | | - | |
1112 | | - | |
| 1128 | + | |
1113 | 1129 | | |
1114 | | - | |
1115 | 1130 | | |
1116 | | - | |
1117 | | - | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
1121 | 1146 | | |
1122 | 1147 | | |
1123 | 1148 | | |
| |||
0 commit comments