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

Commit 0e3b2ba

Browse files
Googlernshahan
authored andcommitted
Update new material_select mixins to remove "selector" pattern and add tests.
PiperOrigin-RevId: 220156723
1 parent 42cf9f4 commit 0e3b2ba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

angular_components/lib/material_select/_mixins.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,22 +143,22 @@
143143
}
144144

145145
/// Sets the font size of the dropdown item.
146-
@mixin material-select-dropdown-item-font-size($font-size, $selector: '') {
147-
::ng-deep #{$selector} material-select-dropdown-item {
146+
@mixin material-select-dropdown-item-font-size($font-size) {
147+
::ng-deep material-select-dropdown-item {
148148
font-size: $font-size;
149149
}
150150
}
151151

152152
/// Sets the line height of the dropdown item.
153-
@mixin material-select-dropdown-item-line-height($line-height, $selector: '') {
154-
::ng-deep #{$selector} material-select-dropdown-item {
153+
@mixin material-select-dropdown-item-line-height($line-height) {
154+
::ng-deep material-select-dropdown-item {
155155
line-height: $line-height;
156156
}
157157
}
158158

159159
/// Sets the padding of the dropdown list.
160-
@mixin material-select-dropdown-padding($padding, $selector: '') {
161-
::ng-deep #{$selector} material-list {
160+
@mixin material-select-dropdown-padding($padding) {
161+
::ng-deep material-list {
162162
padding: $padding;
163163
}
164164
}

0 commit comments

Comments
 (0)