app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styles: [`
.mat-expansion-panel.mat-expanded
.mat-expansion-panel-header{
background: LightBlue;
}
`]
})
export class AppComponent { }
app.component.html
<h2 style="padding-top:25px; padding-bottom:25px;">
Angular Material - How to change Expansion Panel
header expanded background color
</h2>
<mat-expansion-panel>
<mat-expansion-panel-header>
<mat-panel-title>Dart</mat-panel-title>
</mat-expansion-panel-header>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Integer vitae semper massa. Donec maximus, dui nec
dignissim blandit, ante odio varius ex,
nec volutpat erat justo ac magna.
</mat-expansion-panel>
app.module.ts [import]
import {MatExpansionModule} from '@angular/material/expansion'
- angular material - Action bar inside an Expansion Panel
- angular material - Expansion Panel opened & closed event
- angular material - Icon inside Expansion Panel header
- angular material - How to use Accordion flat display mode
- angular material - Open & close Expansion Panel on button click
- angular material - Expansion Panel afterExpand & afterCollapse event
- angular material - How to initially expand Expansion Panel
- angular material - Accordion expanded panels header background color
- angular material - How to use List
- angular material - List items separator
- angular material - How to generate List items from array
- angular material - Navigation list with button and icon
- angular material - How to use Action List
- angular material - Action list with button and icon
- angular material - How to use Selection List