Skip to content

Commit 3d21c1b

Browse files
authored
fix(material/expansion): always reset outline (angular#33542)
Currently we only reset the outline on `focus` and `hover` which doesn't cover some of the new states like `focus-visible`. This can be seen when simulating the state in the dev tools.
1 parent d7f9057 commit 3d21c1b

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/material/expansion/expansion-panel-header.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ $fallbacks: m3-expansion.get-tokens();
1111
align-items: center;
1212
padding: 0 24px;
1313
border-radius: inherit;
14+
outline: 0;
1415

1516
.mat-expansion-panel-animations-enabled & {
1617
transition: height expansion-variables.$header-transition;
@@ -60,11 +61,6 @@ $fallbacks: m3-expansion.get-tokens();
6061
transition: none;
6162
}
6263

63-
&:focus,
64-
&:hover {
65-
outline: none;
66-
}
67-
6864
&.mat-expanded:focus,
6965
&.mat-expanded:hover {
7066
background: inherit;

0 commit comments

Comments
 (0)