-
Notifications
You must be signed in to change notification settings - Fork 155
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
fix: Aligns drawers slider to split panel and matches side nav animation #1587
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1587 +/- ##
==========================================
+ Coverage 94.04% 94.05% +0.01%
==========================================
Files 649 649
Lines 17565 17565
Branches 5767 5767
==========================================
+ Hits 16519 16521 +2
+ Misses 977 975 -2
Partials 69 69
☔ View full report in Codecov by Sentry. |
Do we have a visual regression test that could cover this? :) |
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 left a couple of non-blocking comments 👍
@@ -156,7 +156,7 @@ | |||
|
|||
> .drawer-slider { | |||
grid-column: 1; | |||
grid-row: 3; | |||
grid-row: 1 / span 3; |
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.
nit: I'm not sure if the number of rows might change, but we could be a bit more defensive here.
grid-row: 1 / span 3; | |
grid-row: 1 / -1; |
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.
This is a great solution! There are a couple other places in this file that use the span
method, so they should all be consistent. I think this works for now, since the rows won't change.
We currently have screenshot tests for an open drawer, but not one with an open drawer and open split panel. I'll make a note to add one as a follow up, since we may be updating them for the launch. |
Description
The slider of drawers didn't line up vertically with the slider of split panel.
Before:
After:
Also, the drawer was animated both in and out, which didn't match the navigation on the other side. This removes the animation out so that the two match. There is a separate issue with the animation that creates lag in certain scenarios, but since that is a more complex fix, this is a holdover for the launch of drawers until that bug can be fixed.
Related links, issue #, if available: n/a
How has this been tested?
Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness
CONTRIBUTING.md
.CONTRIBUTING.md
.Security
checkSafeUrl
function.Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.