fix: add aria-hidden to focus guards

This commit is contained in:
Wesley Luyten
2025-10-27 13:21:57 -07:00
parent 956dad7ff5
commit 77182f1ab3
@@ -384,7 +384,8 @@ function createFocusGuard(dataType: 'inside' | 'outside'): HTMLElement {
const focusGuard = document.createElement('span');
focusGuard.setAttribute('data-type', dataType);
focusGuard.setAttribute('tabindex', '0');
focusGuard.toggleAttribute('data-focus-guard', true);
focusGuard.setAttribute('data-focus-guard', '');
focusGuard.setAttribute('aria-hidden', 'true');
focusGuard.style.cssText = visuallyHiddenStyles;
return focusGuard;
}