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

Bugfix #581 | Fix social login buttons with white backgrounds #582

Merged
merged 1 commit into from
Jul 3, 2020

Conversation

morganlutz
Copy link
Contributor

@morganlutz morganlutz commented Jun 30, 2020

Changes

See #581

Testing

You can test this change in dark mode by adding this line in the app level colors.xml file:

    <color name="com_auth0_lock_form_background">#121212</color>
  • This change adds unit test coverage

  • This change adds integration/UI test coverage
    I did not see unit or integration tests for the existing social button methods.

  • This change has been tested on the latest version of the platform/language or why not

Checklist

Light Mode Dark Mode
google-light-mode google-dark-mode

@morganlutz morganlutz requested a review from a team June 30, 2020 21:02
final ShapeDrawable pressedBackground;

boolean shouldDrawOutline = pressedColor == Color.WHITE;
if (shouldDrawOutline) {
int outlineColor = getResources().getColor(R.color.com_auth0_lock_social_light_background_focused);
normalBackground = ViewUtils.getRoundedOutlineBackground(getResources(), outlineColor);
normalBackground = ViewUtils.getOpaqueRoundedOutlineBackground(getResources(), pressedColor, outlineColor);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lbalmaceda I left this the same because the auth config background color is being passed to getTouchFeedbackBackground which is then used for this new method

@lbalmaceda lbalmaceda added this to the v2-Next milestone Jul 3, 2020
Copy link
Contributor

@lbalmaceda lbalmaceda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@morganlutz thanks for this!

@lbalmaceda lbalmaceda merged commit c9654b2 into auth0:master Jul 3, 2020
@lbalmaceda lbalmaceda modified the milestones: v2-Next, 2.21.0 Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants