Use static styles on mwc-snackbar

This commit is contained in:
Giorgio Garasto 2019-01-15 08:53:27 +01:00
parent 9293b465ed
commit 3ce096b364

View File

@ -79,12 +79,12 @@ export class Snackbar extends BaseElement {
protected boundActionHandler = this._actionHandler.bind(this);
renderStyle() {
return style;
static get styles() {
return [style];
}
render() {
return html`${this.renderStyle()}
return html`
<div class="mdc-snackbar"
aria-live="assertive"
aria-atomic="true"