Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit a448f60

Browse files
authored
fix(toolbar): Fix class overriding custom entries. (#28)
1 parent ef7104a commit a448f60

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/lib/toolbar/toolbar-fixed-adjust.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ import {
99
})
1010
export class ToolbarFixedAdjustDirective {
1111
@Input() id: string;
12-
@HostBinding('class') className: string = 'mdc-toolbar-fixed-adjust';
12+
@HostBinding('class.mdc-toolbar-fixed-adjust') className: string = 'mdc-toolbar-fixed-adjust';
1313
}

src/lib/toolbar/toolbar-row.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ import {
77
selector: 'mdc-toolbar-row'
88
})
99
export class ToolbarRowDirective {
10-
@HostBinding('class') className: string = 'mdc-toolbar__row';
10+
@HostBinding('class.mdc-toolbar__row') className: string = 'mdc-toolbar__row';
1111
}

src/lib/toolbar/toolbar-section.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class ToolbarSectionDirective {
1212
@Input() alignStart: boolean;
1313
@Input() alignEnd: boolean;
1414
@Input() shrinkToFit: boolean;
15-
@HostBinding('class') className: string = 'mdc-toolbar__section';
15+
@HostBinding('class.mdc-toolbar__section') className: string = 'mdc-toolbar__section';
1616
@HostBinding('class.mdc-toolbar__section--align-start') get classAlignStart(): string {
1717
return this.alignStart ? 'mdc-toolbar__section--align-start' : '';
1818
}

src/lib/toolbar/toolbar-title.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ import {
99
})
1010
export class ToolbarTitleDirective {
1111
@Input() id: string;
12-
@HostBinding('class') className: string = 'mdc-toolbar__title';
12+
@HostBinding('class.mdc-toolbar__title') className: string = 'mdc-toolbar__title';
1313
}

src/lib/toolbar/toolbar.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class ToolbarComponent implements AfterViewInit, OnDestroy {
3232
@Input() waterfall: boolean;
3333
@Input() fixedLastrow: boolean;
3434
@Output() change: EventEmitter<number> = new EventEmitter<number>();
35-
@HostBinding('class') className: string = 'mdc-toolbar';
35+
@HostBinding('class.mdc-toolbar') className: string = 'mdc-toolbar';
3636
@HostBinding('class.mdc-toolbar--fixed') get classFixedToolbar(): string {
3737
return this.fixed ? 'mdc-toolbar--fixed' : '';
3838
}

0 commit comments

Comments
 (0)