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)
Mon, Apr 1, 5:37 PM
Unknown Object (File)
Wed, Mar 27, 11:54 PM
Unknown Object (File)
Feb 10 2024, 4:10 PM
Unknown Object (File)
Feb 10 2024, 4:10 PM
Unknown Object (File)
Feb 10 2024, 4:09 PM
Unknown Object (File)
Feb 10 2024, 4:09 PM
Unknown Object (File)
Feb 10 2024, 2:31 PM
Unknown Object (File)
Jan 9 2024, 8:00 PM
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