We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9eacedc commit 956dad7Copy full SHA for 956dad7
packages/html/src/components/media-popover.ts
@@ -378,11 +378,14 @@ export class MediaPopoverPortal extends HTMLElement {
378
}
379
380
381
+const visuallyHiddenStyles = 'position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;';
382
+
383
function createFocusGuard(dataType: 'inside' | 'outside'): HTMLElement {
384
const focusGuard = document.createElement('span');
385
focusGuard.setAttribute('data-type', dataType);
386
focusGuard.setAttribute('tabindex', '0');
387
focusGuard.toggleAttribute('data-focus-guard', true);
388
+ focusGuard.style.cssText = visuallyHiddenStyles;
389
return focusGuard;
390
391
0 commit comments