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

Commit 7519629

Browse files
Googlernshahan
authored andcommitted
Added some mixins for components
PiperOrigin-RevId: 175895085
1 parent 3db36cd commit 7519629

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lib/material_button/_mixins.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,12 @@ $button-disabled-background-dark: rgba(255, 255, 255, $mat-divider-opacity);
257257
}
258258
}
259259

260+
@mixin icon-button-padding($selector, $padding) {
261+
#{$selector}[icon] ::ng-deep .content {
262+
padding: $padding;
263+
}
264+
}
265+
260266
/// Mixin to create a raised button taking an optional color of the button.
261267
///
262268
/// Should be scopped to the specific button needed to make raised.

lib/material_dialog/_mixins.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,9 @@
8282
@include flex-flow($flow);
8383
}
8484
}
85+
86+
@mixin simple-dialog-min-width($min-width) {
87+
::ng-deep .modal material-dialog.simple-dialog {
88+
min-width: $min-width;
89+
}
90+
}

0 commit comments

Comments
 (0)