From 6e81aea4b2e4d1f552a7b810b718a8eae805f579 Mon Sep 17 00:00:00 2001 From: Miles Malerba Date: Mon, 16 May 2022 23:13:20 +0000 Subject: [PATCH] fix(material-experimental/mdc-button): don't apply styles to icons within the text label --- src/material-experimental/mdc-button/button.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/material-experimental/mdc-button/button.scss b/src/material-experimental/mdc-button/button.scss index 6e2618cfe584..5b7e705583fc 100644 --- a/src/material-experimental/mdc-button/button.scss +++ b/src/material-experimental/mdc-button/button.scss @@ -69,7 +69,7 @@ // However, Angular Material expects a `mat-icon` instead. The following // mixins will style the icons appropriately. .mat-mdc-button { - .mat-icon { + & > .mat-icon { @include mdc-button-base.icon(); } .mdc-button__label + .mat-icon { @@ -81,7 +81,7 @@ .mat-mdc-raised-button, .mat-mdc-outlined-button { // Icons inside contained buttons have different styles due to increased button padding - .mat-icon { + & > .mat-icon { @include mdc-button-base.icon(); @include mdc-button-base.icon-contained(); }