Use static styles on mwc-fab

This commit is contained in:
Giorgio Garasto 2019-01-15 08:45:26 +01:00
parent 115d5e0166
commit 74bee424ba

View File

@ -49,8 +49,8 @@ export class Fab extends LitElement {
return this.attachShadow({mode: 'open', delegatesFocus: true});
}
renderStyle() {
return style;
static get styles() {
return [style];
}
render() {
@ -61,7 +61,6 @@ export class Fab extends LitElement {
};
const showLabel = this.label !== '' && this.extended;
return html`
${this.renderStyle()}
<button
.ripple="${ripple()}"
class="mdc-fab ${classMap(classes)}"