diff --git a/src/lib/expansion/_expansion-theme.scss b/src/lib/expansion/_expansion-theme.scss index 75e2b528bc3b..0a0a713444bf 100644 --- a/src/lib/expansion/_expansion-theme.scss +++ b/src/lib/expansion/_expansion-theme.scss @@ -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); + } } }