Merged in fix/sw-1013-calendar-no-scroll (pull request #1026)

fix(SW-1013): extract custom components from day picker

* fix(SW-1013): extract custom components from day picker

The custom components in the mobile day picker made a lot of components
in the day picker to unmount and mount again, which had weird scrolling
behaviour. They don't need to be baked in to the day picker so they are
now extracted to regular sibling elements.


Approved-by: Pontus Dreij
This commit is contained in:
Niclas Edenvin
2024-12-03 16:01:19 +00:00
parent 4545de877f
commit 2660faf4ac
2 changed files with 75 additions and 83 deletions
@@ -10,6 +10,11 @@
position: relative;
}
.root {
display: grid;
grid-area: content;
}
.header {
align-self: flex-end;
background-color: var(--Main-Grey-White);
@@ -37,7 +42,6 @@
div.months {
display: grid;
grid-area: content;
overflow-y: scroll;
scroll-snap-type: y mandatory;
}