Skip to content

[Auth] Add aria-hidden='true' attribute to embedded iframe #5633

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 18, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/auth/src/platform_browser/iframe/iframe.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ describe('platform_browser/iframe/iframe', () => {
top: '-100px',
width: '1px',
height: '1px'
}
},
'aria-hidden': 'true',
});
expect(iframeSettings.dontclear).to.be.true;
});
Expand Down
3 changes: 2 additions & 1 deletion packages/auth/src/platform_browser/iframe/iframe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ const IFRAME_ATTRIBUTES = {
top: '-100px',
width: '1px',
height: '1px'
}
},
'aria-hidden': 'true'
};

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