Skip to content

Commit 21c68ad

Browse files
crisbetojelbourn
authored andcommitted
fix(expansion-panel): dark theme header hover color (#6616)
Fixes the expansion panel header hover effect not being disabled for dark themes.
1 parent 28ede30 commit 21c68ad

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/lib/expansion/_expansion-theme.scss

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@
1515
border-top-color: mat-color($foreground, divider);
1616
}
1717

18-
.mat-expansion-panel-header:not([aria-disabled='true']) {
19-
&.cdk-keyboard-focused,
20-
&.cdk-program-focused,
21-
&:hover {
22-
background: mat-color($background, hover);
18+
.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header {
19+
&:not([aria-disabled='true']) {
20+
&.cdk-keyboard-focused,
21+
&.cdk-program-focused,
22+
&:hover {
23+
background: mat-color($background, hover);
24+
}
2325
}
2426
}
2527

0 commit comments

Comments
 (0)