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

Commit 92513c2

Browse files
Googlernshahan
authored andcommitted
Change the dropdown-icon-spacing mixin to accept any margin value, not just margin-left.
PiperOrigin-RevId: 243580588
1 parent eb7d808 commit 92513c2

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

angular_components/lib/material_datepicker/material_date_range_picker.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ $main-font-size: 13px;
8686
}
8787

8888
.menu-lookalike {
89-
@include dropdown-icon-spacing($mat-grid * 2);
89+
@include dropdown-icon-spacing(0 0 0 $mat-grid * 2);
9090
}
9191

9292
.next-prev-buttons {

angular_components/lib/material_datepicker/material_datepicker.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ $main-font-size: 13px;
4949
}
5050

5151
.menu-lookalike {
52-
@include dropdown-icon-spacing($mat-grid * 2);
52+
@include dropdown-icon-spacing(0 0 0 $mat-grid * 2);
5353
width: $mat-grid * 22; // looks about right
5454
}
5555

angular_components/lib/material_datepicker/material_time_picker.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $time-picker-width: $mat-grid * 18;
1111

1212
:host {
1313
dropdown-button {
14-
@include dropdown-icon-spacing($mat-grid * 2);
14+
@include dropdown-icon-spacing(0 0 0 $mat-grid * 2);
1515
width: $time-picker-width;
1616

1717
.button-text {

angular_components/lib/material_select/_mixins.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@
5151
}
5252
}
5353

54-
/// Adds spacing between text and icon in dropdown button.
55-
@mixin dropdown-icon-spacing($spacing) {
54+
/// Sets margin around the icon in dropdown button.
55+
@mixin dropdown-icon-spacing($margin) {
5656
::ng-deep .icon {
57-
margin-left: $spacing;
57+
margin: $margin;
5858
}
5959
}
6060

0 commit comments

Comments
 (0)