Page MenuHomePhabricator

[landing] fix mobile nav bar peeking into screen when quickly resizing window
ClosedPublic

Authored by ginsu on May 19 2023, 5:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 17, 2:19 AM
Unknown Object (File)
Sun, Nov 17, 1:38 AM
Unknown Object (File)
Sun, Nov 17, 1:38 AM
Unknown Object (File)
Sun, Nov 17, 1:38 AM
Unknown Object (File)
Sat, Nov 16, 11:27 PM
Unknown Object (File)
Oct 18 2024, 11:42 PM
Unknown Object (File)
Oct 17 2024, 3:05 AM
Unknown Object (File)
Oct 17 2024, 3:05 AM
Subscribers

Details

Summary

As I was doing more tests for the landing page, I noticed that when I quickly resized the window, the MobileNav component would sometimes peek from the top and be visible. To fix this I made the background color of the MobileNav component transparent whenever it was not active so it would not be visible.

Depends on D7870

Test Plan

Please watch the demo videos below

Before:

After:

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu requested review of this revision.May 19 2023, 6:11 AM
ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: atul, kamil.
ginsu added inline comments.
landing/mobile-nav.css
27 ↗(On Diff #26668)

Not a super related change, but thought it would be good to make all the transitions consistent in this file

atul retitled this revision from [landing] fix mobile nav bar peaking into screen when quickly resizing window to [landing] fix mobile nav bar peeking into screen when quickly resizing window.May 22 2023, 9:19 AM
atul added inline comments.
landing/mobile-nav.css
11 ↗(On Diff #26668)

Hm, so if I understand correctly it looks like we transition the background-color all at once (0ms duration) AFTER a 500ms delay.

This revision is now accepted and ready to land.May 22 2023, 9:38 AM
landing/mobile-nav.css
11 ↗(On Diff #26668)

Yes so immediately after the top transition finishes (the mobile nav bar slides out) we change the background-color back to transparent