Skip to content

Commit

Permalink
[Auth] Add aria-hidden='true' attribute to embedded iframe (#5633)
Browse files Browse the repository at this point in the history
* Add aria-hidden='true' attribute to embedded iframe

* Add changeset
  • Loading branch information
sam-gc committed Oct 18, 2021
1 parent 7092f5f commit 2429ac1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/olive-coats-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@firebase/auth": patch
---

Add the attribute `aria-hidden="true"` to the embedded iframe
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

0 comments on commit 2429ac1

Please sign in to comment.