Page MenuHomePhabricator

[landing] Re-introduce hover styling for `Footer` links
ClosedPublic

Authored by atul on Mar 7 2022, 9:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 31, 10:25 PM
Unknown Object (File)
Tue, Dec 31, 10:25 PM
Unknown Object (File)
Tue, Dec 31, 10:25 PM
Unknown Object (File)
Tue, Dec 31, 10:25 PM
Unknown Object (File)
Tue, Dec 31, 10:22 PM
Unknown Object (File)
Fri, Dec 27, 9:17 AM
Unknown Object (File)
Fri, Dec 27, 9:17 AM
Unknown Object (File)
Fri, Dec 27, 9:17 AM

Details

Summary

Bring back the hover styling from before. Here's how it looks:

Test Plan

NA, looks as expected

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul added inline comments.
landing/footer.css
57 ↗(On Diff #10131)

We don't have all the nice themes figured out like we do on web. But, to be consistent I'm going with

var(--color-disabled) = --shades-black-60: #808080

and will make sure to use the same value for hover states throughout

atul requested review of this revision.Mar 7 2022, 9:56 PM

For some reason the uploaded video doesn't seem to load

Weird, here it is attached again:

tomek requested changes to this revision.Mar 8 2022, 8:33 AM

The upload still doesn't load for me. I had this issue once and the only solution was to record again.

The code looks ok, but would like to see a video before accepting.

landing/footer.css
57–65 ↗(On Diff #10131)

Not sure about good practices, but we can consider extracting animation styles to one block

This revision now requires changes to proceed.Mar 8 2022, 8:33 AM
atul requested review of this revision.Mar 8 2022, 8:39 AM

The upload still doesn't load for me. I had this issue once and the only solution was to record again.

Ah darn, sorry about that. Attached YouTube and direct link to file as a backup

https://youtu.be/GU0UtWLzh7s
https://blob.sh/atul/D3366.mov

tomek added a reviewer: ashoat.

Thanks! It looks really nice. My personal preference would be to have shorter transition so it feels less laggy. Adding @ashoat to have a look.

My personal preference would be to have shorter transition so it feels less laggy.

Makes sense, I agree that the effect might be a bit too dramatic. 300ms is what we had in the past so I stuck with it, but happy to re-assess.

I'm okay with whatever, but tend to agree that 300ms is a bit long. Maybe 150ms?

This revision is now accepted and ready to land.Mar 8 2022, 10:38 AM

Maybe 150ms?

Sounds good, I'll update before landing

landing/footer.css
57 ↗(On Diff #10131)

We could make shared util for all colors. Creating an issue here: https://linear.app/comm/issue/ENG-846/create-a-shared-color-and-theming-utility

68 ↗(On Diff #10131)

Could be a solid opportunity for using :is : https://developer.mozilla.org/en-US/docs/Web/CSS/:is

Could be a solid opportunity for using :is : https://developer.mozilla.org/en-US/docs/Web/CSS/:is

This definitely looks cool and would clean things up, but it looks like it's a newer feature so might be risky to include for now.

atul marked an inline comment as done.

300ms -> 150ms

This revision was landed with ongoing or failed builds.Mar 8 2022, 11:08 AM
This revision was automatically updated to reflect the committed changes.