Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit aca037f

Browse files
committed
fix(menu): support dark themes and non-grey backgrounds
Menu popups should always be lightly colored and its content should use their respective contrast color and opactiy. - Set background color to background-50 - Use contrast values for buttons, icons, and dividers Fixes #9100
1 parent 77dc185 commit aca037f

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

src/components/menu/menu-theme.scss

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
11
md-menu-content.md-THEME_NAME-theme {
2-
background-color: '{{background-A100}}';
3-
2+
background-color: '{{background-50}}';
43
md-menu-item {
5-
color: '{{background-A200-0.87}}';
6-
4+
color: '{{background-50-contrast}}';
75
md-icon {
8-
color: '{{background-A200-0.54}}';
6+
color: '{{background-50-contrast-icon}}';
97
}
10-
118
.md-button[disabled] {
12-
color: '{{background-A200-0.25}}';
13-
9+
color: '{{background-50-contrast-disabled}}';
1410
md-icon {
15-
color: '{{background-A200-0.25}}';
11+
color: '{{background-50-contrast-disabled}}';
1612
}
1713
}
18-
1914
}
20-
2115
md-menu-divider {
22-
background-color: '{{background-A200-0.11}}';
16+
background-color: '{{background-50-contrast-divider}}';
2317
}
2418
}

0 commit comments

Comments
 (0)