Skip to content

Commit 851f13e

Browse files
crisbetowagnermaciel
authored andcommitted
fix(material-experimental/mdc-menu): add disabled item styles (#23112)
Fixes that we didn't have any styles that would differentiate a disabled item from an enabled one. (cherry picked from commit 1e7b2f4)
1 parent 07f8c18 commit 851f13e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/material-experimental/mdc-menu/menu.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ mat-menu {
6363
// more consistent by disabling pointer events and allowing the user to click through.
6464
pointer-events: none;
6565
cursor: default;
66+
67+
// This is the same as `mdc-list-mixins.list-disabled-opacity` which
68+
// we can't use directly, because it comes with some selectors.
69+
opacity: mdc-list-variables.$content-disabled-opacity;
6670
}
6771

6872
.mat-icon {

0 commit comments

Comments
 (0)