So I\'ve been trying to adopt Materials Accordion in my Web Application development.
However having some troubles getting the header to expand in size as the content gro
You dont have to use ::ng-deep. You can use [collapsedHeight] and [expandedHeight] on your mat-expansion-panel-header.
::ng-deep
[collapsedHeight]
[expandedHeight]
mat-expansion-panel-header
Section 1 This is the content text that makes sense here.
This is the content text that makes sense here.
Link to StackBlitz Demo.