Skip to content

Commit 5c4dc04

Browse files
devversionjelbourn
authored andcommitted
fix(toolbar): disable view encapsulation. (#678)
* Disables the view encapsulation for the toolbar component. To be consistent with other components and simplify custom styling. Fixes #676.
1 parent f7bf148 commit 5c4dc04

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/components/toolbar/toolbar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $md-toolbar-padding: 16px !default;
1111
color: md-color($palette, default-contrast);
1212
}
1313

14-
:host {
14+
md-toolbar {
1515
display: flex;
1616
box-sizing: border-box;
1717

src/components/toolbar/toolbar.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import {
22
Component,
33
ChangeDetectionStrategy,
4-
Input
4+
Input,
5+
ViewEncapsulation
56
} from '@angular/core';
67
import {Renderer} from '@angular/core';
78
import {ElementRef} from '@angular/core';
@@ -12,6 +13,7 @@ import {ElementRef} from '@angular/core';
1213
templateUrl: 'toolbar.html',
1314
styleUrls: ['toolbar.css'],
1415
changeDetection: ChangeDetectionStrategy.OnPush,
16+
encapsulation: ViewEncapsulation.None
1517
})
1618
export class MdToolbar {
1719

0 commit comments

Comments
 (0)