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

Commit 3db36cd

Browse files
Googlernshahan
authored andcommitted
Updates the enable-pointer-events-for-disabled-items mixin to allow users to specify a class name to scope the mixin to.
This allows the mixin to be used for specific dropdowns and not be applied page wide. PiperOrigin-RevId: 175882679
1 parent ac1fd84 commit 3db36cd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/material_select/_mixins.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,12 @@
8080
}
8181
}
8282

83-
@mixin enable-pointer-events-for-disabled-items {
84-
::ng-deep material-select-dropdown-item.item.disabled {
83+
/// Enables pointer events on disabled MaterialSelectDropdownItems
84+
///
85+
/// This can be scoped to a specific selector in cases where
86+
/// MaterialSelectDropdownItems are placed in an overlay.
87+
@mixin enable-pointer-events-for-disabled-items($selector: '') {
88+
::ng-deep #{$selector} material-select-dropdown-item.item.disabled {
8589
pointer-events: all;
8690
}
8791
}

0 commit comments

Comments
 (0)