Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 9ab1ac2

Browse files
Googlernshahan
authored andcommitted
Add mixin for adding border radius into expansionpanel.
PiperOrigin-RevId: 209909780
1 parent 042280b commit 9ab1ac2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/material_expansionpanel/_mixins.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,17 @@ $_panel: 'div.panel.themeable';
226226
}
227227
}
228228

229+
// Adds border radius to the closed and open panel.
230+
@mixin expansionpanel-border-radius($radius) {
231+
::ng-deep #{$_panel} {
232+
border-radius: $radius;
233+
234+
.header {
235+
border-radius: $radius;
236+
}
237+
}
238+
}
239+
229240
@mixin expansionpanel-top-align-expand-button($margin-top: $mat-grid-type * 3) {
230241
::ng-deep #{$_panel} {
231242
&.open > header > .header .expand-button {

0 commit comments

Comments
 (0)