diff --git a/src/dev-app/button/button-demo.html b/src/dev-app/button/button-demo.html index 94659594fb17..f9ab4a04eac6 100644 --- a/src/dev-app/button/button-demo.html +++ b/src/dev-app/button/button-demo.html @@ -26,6 +26,11 @@

Text Buttons [mat-button]

+

Raised Buttons [mat-raised-button]

@@ -35,6 +40,11 @@

Raised Buttons [mat-raised-button]

+

Stroked Buttons [mat-stroked-button]

@@ -44,6 +54,11 @@

Stroked Buttons [mat-stroked-button]

+

Flat Buttons [mat-flat-button]

@@ -53,6 +68,11 @@

Flat Buttons [mat-flat-button]

+

Icon Buttons [mat-icon-button]

diff --git a/src/dev-app/mdc-button/mdc-button-demo.html b/src/dev-app/mdc-button/mdc-button-demo.html index e34b52836b8b..b1d3f2377332 100644 --- a/src/dev-app/mdc-button/mdc-button-demo.html +++ b/src/dev-app/mdc-button/mdc-button-demo.html @@ -58,6 +58,11 @@

Text Buttons [mat-button]

+

Raised Buttons [mat-raised-button]

@@ -67,6 +72,11 @@

Raised Buttons [mat-raised-button]

+

Stroked Buttons [mat-stroked-button]

@@ -76,6 +86,11 @@

Stroked Buttons [mat-stroked-button]

+

Flat Buttons [mat-flat-button]

@@ -85,6 +100,11 @@

Flat Buttons [mat-flat-button]

+

Icon Buttons [mat-icon-button]

diff --git a/src/material-experimental/mdc-button/button.html b/src/material-experimental/mdc-button/button.html index 7218c1fe2d72..ce5f8c040ad5 100644 --- a/src/material-experimental/mdc-button/button.html +++ b/src/material-experimental/mdc-button/button.html @@ -5,15 +5,15 @@ + + + - - - favorite + // ``` + // However, Angular Material expects a `mat-icon` instead. The following + // will extend the `mdc-button__icon` styling to the mat icon. Note that + // the extended styles inherently only match icons that nest themselves in + // a parent `mdc-button`. + // + // TODO(mmalerba): Have MDC create a mixin for this so we don't have to rely on extending their + // class. + .mat-icon { + @extend .mdc-button__icon; + } } // Add an outline to make buttons more visible in high contrast mode. Stroked buttons and FABs