FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(docs-infra): contain scroll within adev dropdown menus · angular/angular@dd29713 · GitHub

Commit dd29713

Browse files
authored andcommitted
fix(docs-infra): contain scroll within adev dropdown menus
Scrolling to the top or bottom of a dropdown let the scroll event chain into the page behind it, causing the whole app to scroll. #70137 fixed this for the version picker, but the same containment was missing on every other menu. The API reference filter, the tutorial step list and the update guide's version dropdowns already had a scroll container, so they only needed overscroll-behavior. The social and theme mini-menus had neither a height cap nor overflow, so overscroll-behavior alone would have been inert on them. They now share the version picker's max-height/overflow-y/overscroll-behavior, hoisted onto .adev-mini-menu, which also keeps their items reachable when the viewport is too short to fit the whole menu.
1 parent 66c5ea7 commit dd29713

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎adev/shared-docs/components/select/select.component.scss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@
171171
flex-direction: column;
172172
max-height: 12rem;
173173
overflow: auto;
174+
overscroll-behavior: contain;
174175
padding: 0.25rem;
175176
}
176177

‎adev/src/app/core/layout/navigation/mini-menu.scss‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
border-radius: 0.25rem;
1212
z-index: var(--z-index-mini-menu);
1313
box-shadow: 10px 4px 40px 0 rgba(0, 0, 0, 0.075);
14+
max-height: 70dvh;
15+
overflow-y: auto;
16+
overscroll-behavior: contain;
1417

1518
// Animation for mini-menu appearance
1619
animation: menuFadeIn 0.2s ease-out forwards;
@@ -107,9 +110,6 @@
107110
}
108111

109112
.adev-version-picker {
110-
overflow-y: auto;
111-
overscroll-behavior: contain;
112-
max-height: 70dvh;
113113
margin-inline-start: 10px;
114114

115115
li {

‎adev/src/app/features/tutorial/tutorial-navigation-list.scss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
list-style: none;
77
overflow-y: auto;
88
overflow-x: hidden;
9+
overscroll-behavior: contain;
910
height: 100vh;
1011
padding: 0;
1112
margin: 0;

‎adev/src/app/features/update/update.component.scss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ h4 {
6565
transform: translateY(-0.7rem);
6666
max-height: 200px;
6767
overflow-y: auto;
68+
overscroll-behavior: contain;
6869
width: $ver-dropdown-width;
6970
box-sizing: border-box;
7071
background: var(--page-background);

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL