Skip to content

Commit de68cdc

Browse files
markgohoyuchenshi
andauthored
ensure emulator warning text is accessible (#4868)
* ensure emulator warning text is accessible the emulator warning text color does not have a sufficient contrast ratio to pass AA guidelines (4.5:1) this fix provides a darker red color that achieves the AAA contrast ratio of 7:1 * Create fast-mangos-serve.md * Update color in Auth Closure SDK. * Update fast-mangos-serve.md Co-authored-by: Yuchen Shi <[email protected]>
1 parent 74b49d2 commit de68cdc

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/fast-mangos-serve.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@firebase/auth": patch
3+
---
4+
5+
Ensure emulator warning text is accessible.

packages-exp/auth-exp/src/core/auth/emulator.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function emitEmulatorWarning(disableBanner: boolean): void {
122122
sty.width = '100%';
123123
sty.backgroundColor = '#ffffff';
124124
sty.border = '.1em solid #000000';
125-
sty.color = '#ff0000';
125+
sty.color = '#b50000';
126126
sty.bottom = '0px';
127127
sty.left = '0px';
128128
sty.margin = '0px';

packages/auth/src/auth.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ fireauth.Auth.prototype.emitEmulatorWarning_ = function(disableBanner) {
339339
ele.style.width = '100%';
340340
ele.style.backgroundColor = '#ffffff';
341341
ele.style.border = '.1em solid #000000';
342-
ele.style.color = '#ff0000';
342+
ele.style.color = '#b50000';
343343
ele.style.bottom = '0px';
344344
ele.style.left = '0px';
345345
ele.style.margin = '0px';

0 commit comments

Comments
 (0)