fix: react-doctor modal/dialog/dropzone a11y — 18 files to role+tabIndex+onKeyDown or dialog

This commit is contained in:
Nora
2026-06-26 03:20:10 -06:00
parent e3c1295e62
commit d0bfec9d36
90 changed files with 747 additions and 408 deletions
+7 -6
View File
@@ -187,12 +187,13 @@ export default function AdminSidebar({
* future iteration hides Harvest Reach for some role, the entire group
* header goes away rather than rendering an empty section.
*/
const visibleGroups: NavGroup[] = NAV_GROUPS
.map((group) => ({
...group,
items: group.items.filter((item) => visibleItems.includes(item)),
}))
.filter((group) => group.items.length > 0);
const visibleGroups: NavGroup[] = [];
for (const group of NAV_GROUPS) {
const items = group.items.filter((item) => visibleItems.includes(item));
if (items.length > 0) {
visibleGroups.push({ ...group, items });
}
}
const isActive = useCallback(
(href: string) => {