@@ -79,15 +79,16 @@ export class MatProgressBar extends _MatProgressBarMixinBase implements AfterVie
7979 /** Adapter used by MDC to interact with the DOM. */
8080 private _adapter : MDCLinearProgressAdapter = {
8181 addClass : ( className : string ) => this . _rootElement . classList . add ( className ) ,
82- getBuffer : ( ) => this . _bufferBar ,
83- getPrimaryBar : ( ) => this . _primaryBar ,
8482 forceLayout : ( ) => this . _platform . isBrowser && this . _rootElement . offsetWidth ,
8583 removeAttribute : ( name : string ) => this . _rootElement . removeAttribute ( name ) ,
8684 setAttribute : ( name : string , value : string ) => this . _rootElement . setAttribute ( name , value ) ,
8785 hasClass : ( className : string ) => this . _rootElement . classList . contains ( className ) ,
8886 removeClass : ( className : string ) => this . _rootElement . classList . remove ( className ) ,
89- setStyle : ( el : HTMLElement , styleProperty : string , value : string ) => {
90- ( el . style as any ) [ styleProperty ] = value ;
87+ setPrimaryBarStyle : ( styleProperty : string , value : string ) => {
88+ ( this . _primaryBar . style as any ) [ styleProperty ] = value ;
89+ } ,
90+ setBufferBarStyle : ( styleProperty : string , value : string ) => {
91+ ( this . _bufferBar . style as any ) [ styleProperty ] = value ;
9192 }
9293 } ;
9394
@@ -151,7 +152,7 @@ export class MatProgressBar extends _MatProgressBarMixinBase implements AfterVie
151152
152153 this . _rootElement = element . querySelector ( '.mdc-linear-progress' ) as HTMLElement ;
153154 this . _primaryBar = element . querySelector ( '.mdc-linear-progress__primary-bar' ) as HTMLElement ;
154- this . _bufferBar = element . querySelector ( '.mdc-linear-progress__buffer' ) as HTMLElement ;
155+ this . _bufferBar = element . querySelector ( '.mdc-linear-progress__buffer-bar ' ) as HTMLElement ;
155156
156157 this . _foundation = new MDCLinearProgressFoundation ( this . _adapter ) ;
157158 this . _foundation . init ( ) ;
0 commit comments