-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Updates NewDot homepage to reflect N6 campaign #5318
Conversation
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.
These backgrounds look great!
Regarding the code:
-
We should add an
alt
to these images for accessibility. -
And we could optimize the SVGs using SVGOMG or a similar tool to improve load times.
Let me know what you think.
Hey! As for the load time optimizer, I think it could be a good idea to discuss it somewhere on Slack and see if this is something we want to use across the app. I think it is a bit out of scope for this PR, but it could certainly be interesting as an app-wide initiative. |
Comments answered! |
Can you share some more screenshots at various screen widths? It also looks like the text might not be vertically centered as well. |
@shawnborton It may very well be the case. I've been having trouble centering it since the image's proportions don't really fit the screen's. Would it be possible to simply get the text with a clear background? That way I can easily center it and I'll just rotate between the images and background colors. |
Well the thing with centering it is that then the image itself won't scale proportionally. Were you able to get it working with |
It doesn't look like we can set |
Nevermind! I was wrong. They can't be images, but they can be background-images (weird)! Changes incoming! |
Great news! |
Hmm got it. So then what happens if you go back to your original implementation where you used background colors, but we just vertically and horizontally center the image, and make sure the image has a max-width of 100% and a max-height of 100%? |
Sweet, I say we go with that then - I think it will end up looking good in most situations. |
Coolio! This should be ready for code-review, then! |
4339b0b
|
Since I added a commit, getting a puller bear to review. |
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.
LGTM and tested well!
Updates NewDot homepage to reflect N6 campaign (cherry picked from commit abed3f8)
π Cherry-picked to staging by @luacmartins in version: 1.1.8-1 π
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
Found this issue that's related to this PR - #5912 |
The text displayed in the right side of the screen is not conveyed to screen reader users. It is implemented as a background image of text which is a failure of WCAG success criteria 1.4.5. |
π Deployed to production by @roryabraham in version: 1.1.8-9 π
|
π Deployed to staging by @luacmartins in version: 1.1.8-10 π
|
π Deployed to production by @roryabraham in version: 1.1.10-2 π
|
cc @shawnborton, @yuwenmemon
@MonilBhavsar, @HorusGoul π»ββοΈ (Although you may want to wait until Shawn gives his two cents. My CSS skills are very lacking π¬)
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/176436
Tests
QA Steps
Tested On
Screenshots
Web
Desktop
iOS
Not displayed on mobiles
Android
Not displayed on mobiles