Use body scroll with ha-drawer (#16137)

This commit is contained in:
Paul Bottein
2023-04-13 21:15:01 +02:00
committed by GitHub
parent a741faced1
commit 2e7d973597
8 changed files with 75 additions and 88 deletions

View File

@@ -63,13 +63,21 @@ export class HaDrawer extends DrawerBase {
styles,
css`
.mdc-drawer {
position: fixed;
top: 0;
}
.mdc-drawer.mdc-drawer--modal.mdc-drawer--open {
z-index: 200;
}
.mdc-drawer-app-content {
transform: translateZ(0);
overflow: unset;
flex: none;
padding-left: var(--mdc-drawer-width);
padding-inline-start: var(--mdc-drawer-width);
padding-inline-end: initial;
direction: var(--direction);
width: 100%;
box-sizing: border-box;
}
`,
];