mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
fix: add aria-hidden to focus guards
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user