Skip to content

Commit 80d8499

Browse files
committed
Add tabindex=-1 to iframe to fix issue with aria-hidden
1 parent 6ee947d commit 80d8499

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/auth/src/platform_browser/iframe/iframe.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ describe('platform_browser/iframe/iframe', () => {
8686
height: '1px'
8787
},
8888
'aria-hidden': 'true',
89+
tabindex: '-1'
8990
});
9091
expect(iframeSettings.dontclear).to.be.true;
9192
});

packages/auth/src/platform_browser/iframe/iframe.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ const IFRAME_ATTRIBUTES = {
3838
width: '1px',
3939
height: '1px'
4040
},
41-
'aria-hidden': 'true'
41+
'aria-hidden': 'true',
42+
tabindex: '-1'
4243
};
4344

4445
// Map from apiHost to endpoint ID for passing into iframe. In current SDK, apiHost can be set to

0 commit comments

Comments
 (0)