Skip to content
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

Customize (style) the Google Sign-In Button #433

Closed
deepfriedbrain opened this issue Jun 22, 2018 · 5 comments
Closed

Customize (style) the Google Sign-In Button #433

deepfriedbrain opened this issue Jun 22, 2018 · 5 comments

Comments

@deepfriedbrain
Copy link

deepfriedbrain commented Jun 22, 2018

I'm not sure if it's just me, but the Google Sign-In button is white and doesn't look nice on a white background page. Moreover, the Google logo on the button is colored while all the other logos are white on a colored background. I want to change the color to blue (as shown in the image below). I can update the CSS to change the color on the Google button, but is there a way to change the logo (to white) other than by doing it through DOM manipulation?

image

image

@wti806
Copy link
Contributor

wti806 commented Jun 22, 2018

The logo URL is defined here: https://github.com/firebase/firebaseui-web/blob/master/javascript/ui/page/base.js#L55 You could change it to whatever you want and re-compile the library.

@deepfriedbrain
Copy link
Author

Thanks for the pointer, but the default implementation doesn't look right - a white button on a white background with very little/poor contrast on the top border. In the zoomed up image in my original post it looks okay, but if you look at the demo page, the Google button looks blended with the white background. I'm surprised that it's not seen as an issue by others.

While I understand that you want Google logo to stand out with a multi-colored logo, it's a visual anomaly when all the other buttons are white on a non-white background.

Moreover, if I move the white Google button anywhere but the top, the whole UI looks very odd. I wanted to make the Email/password as the first option, but it looks really odd with the default implementation.

From a UI perspective, the default implementation is not good, and that's a feedback to your team.

@bojeil-google
Copy link
Contributor

Your feedback is appreciated. The button was implemented based on the guidelines we have received from our UX designers. You can change the button look but you should stick to Google trademark rules and policies: https://www.google.com/permissions/

@hvkale
Copy link

hvkale commented Mar 4, 2019

Any way to use the dark (blue) theme button as shown here - https://developers.google.com/identity/sign-in/web/build-button

@duck132912
Copy link

Your feedback is appreciated. The button was implemented based on the guidelines we have received from our UX designers. You can change the button look but you should stick to Google trademark rules and policies: https://www.google.com/permissions/

but how?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants