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

Added support for terms and privacy button color customization #652

Merged
merged 2 commits into from
Feb 11, 2021

Conversation

ejensen
Copy link
Contributor

@ejensen ejensen commented Feb 11, 2021

Changes

Adds the ability to customize the background color of the button for terms of service and privacy policy.
Previously the color was hardcoded to UIColor(red: 0.9333, green: 0.9333, blue: 0.9333, alpha: 1.0) and could not be changed.

Testing

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

Checklist

@ejensen ejensen requested a review from a team as a code owner February 11, 2021 00:37
@@ -249,7 +251,8 @@ class DatabasePresenter: Presentable, Loggable {
}
view.primaryButton?.onPress = checkTermsAndSignup
view.secondaryButton?.title = "By signing up, you agree to our terms of\n service and privacy policy".i18n(key: "com.auth0.lock.database.button.tos", comment: "tos & privacy")
view.secondaryButton?.color = UIColor(red: 0.9333, green: 0.9333, blue: 0.9333, alpha: 1.0)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is where the button color was previously hardcoded

Widcket
Widcket previously approved these changes Feb 11, 2021
@Widcket Widcket merged commit 300b600 into auth0:master Feb 11, 2021
@Widcket Widcket deleted the additional-styling branch February 11, 2021 01:55
@Widcket Widcket changed the title Terms and privacy button color customization Added support for Terms and privacy button color customization Feb 11, 2021
@Widcket Widcket changed the title Added support for Terms and privacy button color customization Added support for terms and privacy button color customization Feb 11, 2021
@Widcket Widcket added this to the vNext milestone Feb 11, 2021
@Widcket
Copy link
Contributor

Widcket commented Feb 11, 2021

Thanks @ejensen for this PR.

@Widcket Widcket mentioned this pull request Mar 9, 2021
@Widcket
Copy link
Contributor

Widcket commented Mar 10, 2021

This is now out in v2.22.0.

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.

3 participants