Skip to content

Commit

Permalink
feat(DrawerList): animate max-height when changed during scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Oct 13, 2022
1 parent 53370d0 commit 4aba967
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,7 @@ exports[`DrawerList scss have to match snapshot 1`] = `
.dnb-drawer-list--scroll .dnb-drawer-list__options {
min-height: 2rem;
max-height: 70vh;
transition: max-height 300ms var(--easing-default);
overflow-y: auto;
overscroll-behavior: contain;
scrollbar-width: thin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
&--scroll &__options {
min-height: 2rem;
max-height: 70vh;
transition: max-height 300ms var(--easing-default);

@include scrollY(auto);
}
Expand Down

0 comments on commit 4aba967

Please sign in to comment.