Skip to content

Commit

Permalink
fix(expansion-panel): dark theme header hover color (angular#6616)
Browse files Browse the repository at this point in the history
Fixes the expansion panel header hover effect not being disabled for dark themes.
  • Loading branch information
crisbeto authored and jelbourn committed Sep 1, 2017
1 parent 28ede30 commit 21c68ad
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/lib/expansion/_expansion-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
border-top-color: mat-color($foreground, divider);
}

.mat-expansion-panel-header:not([aria-disabled='true']) {
&.cdk-keyboard-focused,
&.cdk-program-focused,
&:hover {
background: mat-color($background, hover);
.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header {
&:not([aria-disabled='true']) {
&.cdk-keyboard-focused,
&.cdk-program-focused,
&:hover {
background: mat-color($background, hover);
}
}
}

Expand Down

0 comments on commit 21c68ad

Please sign in to comment.