Skip to content

Commit 94edb39

Browse files
committed
fix(expansion): show header focus state when expanded
The expansion-panel currently shows the header focus state when collapsed. This is an a11y problem because there's no indicator of focus state when expanded.
1 parent b823dbd commit 94edb39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/expansion/_expansion-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
border-top-color: mat-color($foreground, divider);
1818
}
1919

20-
.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header {
20+
.mat-expansion-panel .mat-expansion-panel-header {
2121
&:not([aria-disabled='true']) {
2222
&.cdk-keyboard-focused,
2323
&.cdk-program-focused,

0 commit comments

Comments
 (0)