Skip to content

Commit

Permalink
feat(DrawerList): animate position when used inside dnb-scroll-view (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker authored Oct 14, 2022
1 parent 4b6dafa commit 7ed9550
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,10 @@ exports[`DrawerList scss have to match snapshot 1`] = `
/* stylelint-disable-next-line */ }
.dnb-drawer-list__portal__style {
position: absolute;
transition: all 300ms var(--easing-default);
z-index: 3200; }
html[data-visual-test] .dnb-drawer-list__portal__style {
animation-duration: 1ms !important; }
.dnb-drawer-list__portal__style--fixed {
position: fixed; }
.dnb-drawer-list__root {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@

&__portal__style {
position: absolute;
transition: all 300ms var(--easing-default);

html[data-visual-test] & {
animation-duration: 1ms !important;
}

// higher than modal --modal-z-index:
z-index: 3200;
Expand Down

0 comments on commit 7ed9550

Please sign in to comment.