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

Commit 3a21b89

Browse files
rudzikdawidtinayuangao
authored andcommitted
fix(menuBar): md-menu-bar panel theme supports dark mode (#11258)
Closes #11238
1 parent db1a85d commit 3a21b89

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

src/components/menuBar/menu-bar-theme.scss

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
md-menu-bar.md-THEME_NAME-theme {
22
& > button.md-button {
3-
color: '{{foreground-2}}';
3+
color: '{{foreground-1}}';
44
border-radius: 2px;
55
}
66

7+
md-menu > button {
8+
color: '{{foreground-1}}';
9+
}
10+
711
md-menu.md-open > button, md-menu > button:focus {
812
outline: none;
9-
background: '{{background-200}}';
13+
background-color: '{{ background-500-0.18}}';
1014
}
1115

1216
&.md-open:not(.md-keyboard-mode) md-menu:hover > button {
13-
background-color: '{{ background-500-0.2}}';
17+
background-color: '{{ background-500-0.18}}';
1418
}
1519

1620
&:not(.md-keyboard-mode):not(.md-open) {
@@ -23,22 +27,22 @@ md-menu-bar.md-THEME_NAME-theme {
2327

2428
md-menu-content.md-THEME_NAME-theme {
2529
.md-menu > .md-button:after {
26-
color: '{{background-A200-0.54}}';
30+
color: '{{foreground-2}}';
2731
}
2832

2933
.md-menu.md-open > .md-button {
30-
background-color: '{{ background-500-0.2}}';
34+
background-color: '{{ background-500-0.18}}';
3135
}
3236
}
3337

3438
md-toolbar.md-THEME_NAME-theme.md-menu-toolbar {
35-
background-color: '{{background-A100}}';
36-
color: '{{background-A200}}';
39+
background-color: '{{background-hue-1}}';
40+
color: '{{foreground-1}}';
3741
md-toolbar-filler {
3842
background-color: '{{primary-color}}';
39-
color: '{{background-A100-0.87}}';
43+
color: '{{primary-contrast}}';
4044
md-icon {
41-
color: '{{background-A100-0.87}}';
45+
color: '{{primary-contrast}}';
4246
}
4347
}
4448

0 commit comments

Comments
 (0)