fix: lock background scroll behind mobile menu
This commit is contained in:
@@ -436,6 +436,14 @@ describe('sidebar layout', () => {
|
||||
expect(css).toContain('.scrim{position:fixed;z-index:35;')
|
||||
})
|
||||
|
||||
it('locks background scrolling while the mobile sidebar is open', () => {
|
||||
expect(app).toContain("'mobile-sidebar-open': mobileSidebar")
|
||||
expect(css).toContain('.shell.mobile-sidebar-open{overflow:hidden}')
|
||||
expect(css).toContain('.shell.mobile-sidebar-open main{overflow:hidden;touch-action:none}')
|
||||
expect(css).toContain('.sidebar{position:fixed;z-index:50;')
|
||||
expect(css).toContain('overscroll-behavior:contain')
|
||||
})
|
||||
|
||||
it('uses valid sibling controls for sidebar rows', () => {
|
||||
expect(app).toContain('class="list-row"')
|
||||
expect(app).toContain('class="list-row-main"')
|
||||
|
||||
Reference in New Issue
Block a user