Skip to content

Commit 2e8c2a6

Browse files
committed
New version dropdown: Only scroll context menu content
1 parent afcce69 commit 2e8c2a6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Elastic.Documentation.Site/Assets/web-components/VersionDropdown.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,16 +249,14 @@ const VersionDropdown = ({
249249
cursor: default;
250250
}
251251
}
252+
.euiContextMenuPanel > div:not(.euiContextMenuPanel__title) {
253+
max-height: 70vh;
254+
${useEuiOverflowScroll("y")}
255+
}
252256
.euiContextMenuPanel__title {
253-
position: sticky;
254-
top: 0;
255-
// !important because clicking on the title
256-
// makes the background transparent
257-
// and you unexpectedly see the items behind it.
258257
background-color: ${euiTheme.colors
259258
.backgroundBasePlain} !important;
260259
}
261-
${useEuiOverflowScroll('y')}
262260
`}
263261
/>
264262
</EuiPopover>

0 commit comments

Comments
 (0)