@@ -16,6 +16,7 @@ import {
1616 Renderer2 ,
1717 Directive ,
1818 ViewChild ,
19+ ViewEncapsulation ,
1920} from '@angular/core' ;
2021import { CanColor , mixinColor } from '../core/common-behaviors/color' ;
2122
@@ -70,6 +71,7 @@ export const _MdProgressSpinnerMixinBase = mixinColor(MdProgressSpinnerBase, 'pr
7071 selector : 'md-progress-spinner, mat-progress-spinner' ,
7172 host : {
7273 'role' : 'progressbar' ,
74+ 'class' : 'mat-progress-spinner' ,
7375 '[attr.aria-valuemin]' : '_ariaValueMin' ,
7476 '[attr.aria-valuemax]' : '_ariaValueMax' ,
7577 '[attr.aria-valuenow]' : 'value' ,
@@ -79,6 +81,7 @@ export const _MdProgressSpinnerMixinBase = mixinColor(MdProgressSpinnerBase, 'pr
7981 templateUrl : 'progress-spinner.html' ,
8082 styleUrls : [ 'progress-spinner.css' ] ,
8183 changeDetection : ChangeDetectionStrategy . OnPush ,
84+ encapsulation : ViewEncapsulation . None ,
8285} )
8386export class MdProgressSpinner extends _MdProgressSpinnerMixinBase
8487 implements OnDestroy , CanColor {
@@ -279,12 +282,13 @@ export class MdProgressSpinner extends _MdProgressSpinnerMixinBase
279282 host : {
280283 'role' : 'progressbar' ,
281284 'mode' : 'indeterminate' ,
282- 'class' : 'mat-spinner' ,
285+ 'class' : 'mat-spinner mat-progress-spinner ' ,
283286 } ,
284287 inputs : [ 'color' ] ,
285288 templateUrl : 'progress-spinner.html' ,
286289 styleUrls : [ 'progress-spinner.css' ] ,
287290 changeDetection : ChangeDetectionStrategy . OnPush ,
291+ encapsulation : ViewEncapsulation . None ,
288292} )
289293export class MdSpinner extends MdProgressSpinner {
290294 constructor ( elementRef : ElementRef , ngZone : NgZone , renderer : Renderer2 ) {
0 commit comments