-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add conditional shadow to sticky experiments column #2062
Conversation
@julieg18 could you please add a video (on mac you can do video screenshots) and publish it to the description? plus put more context in the description if needed. Thanks! Good stuff. |
444a1bd
to
64843b5
Compare
64843b5
to
903dd87
Compare
[Q] Is the vertical line (from the video) in the design? Can it be removed? |
Feedback - on the video shadow doesn't look like a shadow on my end? And yes, we can now remove the gray vertrical line? |
Not sure what line you are referring to 🤔 The gray one? |
965015e
to
903dd87
Compare
On further inspection, the shadow actually doesn't have any |
* take off vertical gray line * add blur to column shadow
Added a blur to the box shadow and removed the gray border on the experiments column! |
Yeah. Great stuff @julieg18 ! The video in the description has been updated I guess?
No, please. The current shadows in the code are consistent. It's the same as notification shadow (I hope :) However, we may change it in the future. |
The |
onDrop | ||
onDrop, | ||
root, | ||
isFirst, |
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.
[C] I think we need a better name for this "FirstCell". We would want to convey with the name that it contains controls/metadata about the rest of the row. I am not sure what the correct name would be.
Perhaps do a bit of research and follow up with a simple renaming PR. Rename everything around the "First" concept e.g <FirstCell/>
etc.
<TableHeader | ||
isFirst={isFirst && ind === 0} |
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.
[Q] Why do we need both of these criteria?
[Q] Can we pull out the index === 0
into a function so we don't duplicate it in two different places?
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.
[Q] Why do we need both of these criteria?
We need to select just one experiment column cell (aka one of the rendered TableHeader
s) so we can add the observer to it. The PR does this by finding the first MergedHeaderGroups
, then the first TableHeader
. Personally, I felt like this solution felt overcomplicated but I couldn't think of an alternative 🤔
[Q] Can we pull out the index === 0 into a function so we don't duplicate it in two different places?
Sure!
Storybook has got a wacky diff. I checked the branch out locally and it looked fine. Please take a look before merging. |
Looks like it is due to the storybook comparing the diff to an earlier version of the pr instead of |
Code Climate has analyzed commit 1f17ec6 and detected 2 issues on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 88.2% (85% is the threshold). This pull request will bring the total coverage in the repository to 96.7% (0.0% change). View more on Code Climate. |
@julieg18 q - is the video up to date? I see that the horizontal shadow doesn't look the same now ... is it intentional? |
The video is up to date and I didn't edit the horizontal shadow as far as I know... Can you specify what is exactly different on the horizontal shadow? They are looking the same from my end 🤔 |
If I'm understanding correctly, looking at the horizontal shadow from before this pr and how it looks currently, they seem to look the same. Though it does seem that neither is fading out very well 🤔 Before #2062 merge: |
@julieg18 sorry for the confusion. I mixed up the part of the tables's row with the shadow (also it starts with some delay after you scroll?) :) I see that it's the same more or less now. |
Could be due to the |
Screen.Recording.2022-07-20.at.10.16.01.AM.mov
Fixes #2017