Skip to content

Commit dbb0b23

Browse files
committed
undo changes to expansion panel for now
1 parent dddbca2 commit dbb0b23

File tree

4 files changed

+1
-13
lines changed

4 files changed

+1
-13
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
padding: 0 24px;
66
border-radius: inherit;
77

8-
// Required for focus indicator.
9-
position: relative;
10-
118
&:focus,
129
&:hover {
1310
outline: none;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import {MatAccordionTogglePosition} from './accordion-base';
4848
matExpansionAnimations.expansionHeaderHeight
4949
],
5050
host: {
51-
'class': 'mat-expansion-panel-header mat-focus-indicator',
51+
'class': 'mat-expansion-panel-header',
5252
'role': 'button',
5353
'[attr.id]': 'panel._headerId',
5454
'[attr.tabindex]': 'disabled ? -1 : 0',

src/material/expansion/expansion-panel.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
margin: 0;
1111
border-radius: $border-radius;
1212
overflow: hidden;
13-
position: relative;
1413
transition: margin 225ms $mat-fast-out-slow-in-timing-function,
1514
mat-elevation-transition-property-value();
1615

src/material/expansion/expansion.spec.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -450,14 +450,6 @@ describe('MatExpansionPanel', () => {
450450
});
451451

452452
});
453-
454-
it('should have a focus indicator', () => {
455-
const fixture = TestBed.createComponent(PanelWithContent);
456-
const headerNativeElement =
457-
fixture.debugElement.query(By.directive(MatExpansionPanelHeader))!.nativeElement;
458-
459-
expect(headerNativeElement.classList.contains('mat-focus-indicator')).toBe(true);
460-
});
461453
});
462454

463455

0 commit comments

Comments
 (0)