Skip to content

Commit

Permalink
re-create sveltejs#3949 - set aria-hidden on iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
Conduitry committed Apr 20, 2020
1 parent ac3e0d2 commit 0830b3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/runtime/internal/dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ export function add_resize_listener(node: HTMLElement, fn: () => void) {
`display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ` +
`overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: ${z_index};`
);
iframe.setAttribute('aria-hidden', 'true');
iframe.tabIndex = -1;

let unsubscribe: () => void;
Expand Down

0 comments on commit 0830b3d

Please sign in to comment.