-
Notifications
You must be signed in to change notification settings - Fork 918
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
Streamline fx mobile grid with one column hidden #15653
Conversation
might have overlapping changes with another PR: #15648 (comment) |
Yup I'm watching Craig's #15654 — these solve two isolated issues and may complement each other, and should not interfere in any way or conflict code-wise. (This one is addressing just the empty space as seen above in the screen shots, the other PR changes text size to be closer to the original, as that can also be seen in the images above demonstrating the heading difference between m24 and prod as well.) |
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.
Makes sense to me. Looks good in browserstack testing and some spoofed dev tools testing 🖼️
r+wc
// and avoid the noodles background where the form was | ||
@media #{$mq-lg} { | ||
.c-page-header .mzp-c-split-body { | ||
width: 65%; |
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.
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.
hang on, maybe this was an issue with browserstack, I'm not sure that background is supposed to be there given your screenshots
edit: looks like it will be there on above large breakpoint screens
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.
Nope, it is supposed to be there in the appropriate viewport.
It's sort of intentional — but you're absolutely right, given the angle in the graphics — once the heading gets smaller in the adjacent PR, the body copy will move upwards — with greater chance actually interfering with the noodle.
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.
I was actually considering removing the noodle graphics completely, if on mobile, thus in one column generally, yet on wide viewport. But that felt like too much design decisions to consider so I kinda cheated using 100% width only when there's no background, and bumped the 50% split to 65% when the background is present, to give the content a bit more space.
So this can:
- either wait for Craig's type changes to land, and update from that to see the impact,
- remove the part trying to cheat around the noodle background presence and keep it at 50%,
- or remove the noodle on mobile completely, no matter what screen size, and keep that in one column still,
- or get creative around applying css tricks/filters to the noodle to make it e.g. lighter(?) just for this specific case to be on the safe side,
- or add a solid white background to the paragraph text in case it runs into the image to keep legibility in worst case?
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.
either wait for Craig's type changes to land, and update from that to see the impact,
remove the part trying to cheat around the noodle background presence and keep it at 50%,
these options sound best to me
if the 50% doesn't seem like a generous enough line length on large screens, I would say the background removal is next best option (it's not really serving the purpose of highlighting a call to action anymore and readability takes priority)
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
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.
There's no reason to cut this close. Give those noodles a real boot out of the way 🙂
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.
I think I'm happy now, only keeping ~half of every illustration with some low effort styling, giving more space to the content. Updated the description with the current mobile+landscape output and below are some edgiest edge cases that pretty much should not happen in standard resolutions, but wanted to cover the worst cases here too (dimensions included in the sshots).
Let's see if that's viable (and the few lines of code don't feel too expensive to maintain for such a minor use case) or it warrants a more violent approach O:) — thanks for the feedback!
Of course, this is only a negligible subset of the overall change, so no need to spend too much time on in, it's easy to edit out…
150c9aa
to
7735ed8
Compare
a0c3190
to
045cb73
Compare
One-line summary
When on
.ios
or.android
the send-to-device form is hidden, making the 2col split with just empty space in 50% of the screen feel like a bug. This overrides the split to a single column to make better use of the space (esp. on mobile).Significant changes and points to review
For cases when the form is hidden (making the second column empty), this additionally:
Issue / Bugzilla link
Resolves #15648
Testing
http://localhost:8000/hi-IN/firefox/browsers/mobile/focus/
http://localhost:8000/ar/firefox/browsers/mobile/android/
http://localhost:8000/el/firefox/browsers/mobile/ios/
(compare desktop vs. mobile device or spoof the uastring to include "android" and "mobile", portrait vs. landscape mode and several breakpoints…)
After: × Before: