From 8342ccf1f523d8bf3b2832ac0e77ce18f48a225e Mon Sep 17 00:00:00 2001 From: Miles Malerba Date: Fri, 12 Mar 2021 20:31:21 -0800 Subject: [PATCH] fix(material-experimental/mdc-core): fix broken list option style This was broken by https://github.com/angular/components/pull/22157 --- .../mdc-core/option/_option-theme.scss | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/material-experimental/mdc-core/option/_option-theme.scss b/src/material-experimental/mdc-core/option/_option-theme.scss index 7ee818169dcf..71ad8a20f168 100644 --- a/src/material-experimental/mdc-core/option/_option-theme.scss +++ b/src/material-experimental/mdc-core/option/_option-theme.scss @@ -1,3 +1,5 @@ +// stylelint-disable max-line-length + @use '@material/theme/theme-color' as mdc-theme-color; @use '@material/theme/theme' as mdc-theme; @use '@material/list' as mdc-list; @@ -22,11 +24,9 @@ &.mat-mdc-option-active, // In multiple mode there is a checkbox to show that the option is selected. - &.mdc-deprecated-list-item--selected { - &:not(.mat-mdc-option-multiple):not(.mdc-deprecated-list-item--disabled) { - $color: mdc-theme-color.$on-surface; - background: rgba($color, mdc-ripple.states-opacity($color, hover)); - } + &.mdc-deprecated-list-item--selected:not(.mat-mdc-option-multiple):not(.mdc-deprecated-list-item--disabled) { + $color: mdc-theme-color.$on-surface; + background: rgba($color, mdc-ripple.states-opacity($color, hover)); } }