LG-13196 Enhanced IPP Ready to Verify Email - Take Two#10839
LG-13196 Enhanced IPP Ready to Verify Email - Take Two#10839gina-yamada merged 6 commits intomainfrom
Conversation
… (clean up depricated width on td, round image width
| <tbody> | ||
| <tr> | ||
| <td align="left" width="110.46px"> | ||
| <td align="left" style="width:110px;"> |
There was a problem hiding this comment.
I'm sorta curious if it's necessary to specify the width at all, or would the cell grow automatically to accommodate the image's defined dimensions? The only things that gives me pause here is:
- Usually
styleattributes won't work in production due to CSPstyle-src, but that's probably not an issue for emails, particularly given the second point below. - Rails mailers will automagically inline CSS styling as
styleattribute, but I'm not sure how it works if we also specify our ownstyleattribute value.
(This isn't a blocker)
There was a problem hiding this comment.
@aduth Thanks for the comments here. I need to dig a little more but here is what I know so far...
The cell does not grow to accommodate the images defined dimensions. When I removed style="width:110px; on line 54- you can see the Real ID image below Option 1 shrunk.
Worth mentioning- I created an enrollment in staging and the email I received did not have working images on it. (This EIPP email is only in staging.) I was thinking it was the decimal pixels but am wondering (and will look into) CSP.
There was a problem hiding this comment.
Ohhhh, I know what it is. You're trying to use SVG images but those aren't broadly supported in email:
https://www.caniemail.com/features/image-svg/
This is also why we have app/assets/images/email folder, which includes copies of images specifically because of this support limitation (noted also in folder README):
https://github.com/18F/identity-idp/tree/main/app/assets/images/email
This folder contains images for exclusive use by mailer templates. This includes email-specific imagery, and also variants of existing assets.
For example, since SVG images are not well-supported in all email clients, this folder may include rasterized versions of common SVG images.
There was a problem hiding this comment.
Great tip! Okay, each image on the email template is pointing at a png file inside app/assets/images/email. I did not delete the svg files because they each are being used in app/views/idv/in_person/ready_to_verify/show.html.erb.
…96-enhanced-ipp-ready-to-verify-email-take-two
|
This LGTM! 🎉 |
|
LGTM as well! |


🎫 Ticket
Original ticket: LG-13196 Implementation: EIPP "You're ready to verify in person" Barcode email
🛠 Summary of changes
(I had not previously modified reset_password_instructions but it used the same deprecated attribute so I fixed it.)
📜 Testing Plan
👀 Screenshots