Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit fe7d4c8

Browse files
RobJacobslynnmercier
authored andcommitted
fix(menu): Only show scrollbar when menu item is too big
Also fixes select's menu Resolves #1247
1 parent 7c43b7c commit fe7d4c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/mdc-menu/simple/mdc-simple-menu.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ $mdc-simple-menu-item-fade-duration: .3s;
3737
background-color: white;
3838
white-space: nowrap;
3939
opacity: 0;
40-
overflow: hidden;
40+
overflow-x: hidden;
41+
overflow-y: auto;
4142
box-sizing: border-box;
4243
will-change: transform, opacity;
4344
z-index: 4;

packages/mdc-select/mdc-select.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
left: 0;
8686
max-height: 100%;
8787
transform-origin: center center;
88-
overflow-y: scroll;
8988
z-index: 4; // Should pop up above everything else. temporary-drawer is next highest at 3.
9089
}
9190

0 commit comments

Comments
 (0)