Repository navigation
fix: an open phone menu scrolls, and the page behind it stays still - #99
Merged
Merged
Conversation
Docs: the phone menu, a fixed panel between the header and the bottom of the screen, kept align-self: start from the wide layout's sticky sidebar. Chrome now applies align-self to fixed boxes, so the panel was as tall as its links, started behind the header and had nothing to scroll. It now stretches between its insets. Movies: while the drawer is open over the page, the page doesn't scroll, and the drawer's list keeps its scroll at either end, so a drag on the drawer no longer moves the page behind it. Closes #98
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #98.
What was wrong
align-self: startfrom the wide layout's sticky sidebar, and current Chrome appliesalign-selfto fixed boxes. So the panel was as tall as its links (1100px on a 700px screen), started behind the header, and had nothing to scroll. The links below the fold couldn't be reached.The fix
apps/docs/src/styles.css: below 900px the panel getsalign-self: stretch, so it fills the space between its insets and scrolls.apps/movies/src/styles.scss: below 1298px, where the drawer opens over the page,html:has(.side-drawer.opened)getsoverflow: hidden. That matches what the docs do withhtml.menu-open.apps/movies/src/app/app-shell/app-shell.component.scss:overscroll-behavior: containon the drawer's list.Checked
Headless Chrome with touch drags, against the local builds (
vp preview):top: 0, 1100px tall, and a drag leftscrollTopat 0. After, it istop: 56, 644px tall. A 300px drag up scrolls it to 301, back down to 99, and the page stays at 0. At 820 × 1000 it is 944px tall and scrolls. On a deep page the current link is in view. At 1440 the sidebar is still sticky.vp check: 0 errors.