-
Notifications
You must be signed in to change notification settings - Fork 49
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
feat(ras-acc): dynamically set otp email text color #3033
feat(ras-acc): dynamically set otp email text color #3033
Conversation
9531069
to
cc2f298
Compare
0bce5a5
to
2b4f3d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two issues with the template file:
- the
$email_html
is not updated along with the$post_content
changes - there's a hard-coded OTP code with
895671
value (instead of a placeholder)
0989b8a
to
e4c8473
Compare
Thanks for the review @adekbadek!
I've updated the email html and did some formatting to hopefully make parsing the email a bit easier.
Good catch. Fixed in 6510cc3 I also made some additional changes to how we set colors in the default block in e574d6c and e4c8473. I realized the previous method would not allow the email template to update when theme colors were changed since the block colors were being explicitly set as hex values. Unfortunately, it looks like we will not be able to use a dynamic approach for social icons without some changes in the newsletter plugin first since newsletters pretty strictly decides on a colorsheme for social icon images when generating the email html markup. (at least I wasn't able to find a straightforward way without having to make changes in newsletters) So I've reverted the icons to use the default layout and colorscheme for the time being. I will try to address them in a follow-up PR once I've worked out all of the other design bits for emails: |
🎉 This PR is included in version 3.6.0-epic-ras-acc.8 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 3.9.0-epic-ras-acc.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 4.1.0-epic-ras-acc.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 4.2.0-epic-ras-acc.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 4.4.0-epic-ras-acc.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
PR 2 of 4
This PR adds onto the work in #3032 by adjusting email text, button, and social icon color for the default email template to either white or black depending on background color:
Note: The changes only apply to the one time password email for the time being. Once that email is fully updated, I will get a PR up to update the remaining templates.
How to test the changes in this Pull Request:
Other information: