Skip to content
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

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

katiegeorge
Copy link
Member

Description

The slider of drawers didn't line up vertically with the slider of split panel.

Before:
image

After:
image

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

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (abdd30c) 94.04% compared to head (beb5857) 94.05%.

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              
Files Coverage Δ
src/app-layout/visual-refresh/drawers.tsx 94.00% <ø> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rubencarvalho
Copy link
Contributor

Do we have a visual regression test that could cover this? :)

Copy link
Contributor

@rubencarvalho rubencarvalho left a 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;
Copy link
Contributor

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.

Suggested change
grid-row: 1 / span 3;
grid-row: 1 / -1;

Copy link
Member Author

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.

@katiegeorge
Copy link
Member Author

katiegeorge commented Sep 27, 2023

Do we have a visual regression test that could cover this? :)

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.

@katiegeorge katiegeorge merged commit 6dbdef1 into main Sep 27, 2023
31 checks passed
@katiegeorge katiegeorge deleted the kg/drawers-vr-nits branch September 27, 2023 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants