Use static styles on mwc-checkbox

This commit is contained in:
Giorgio Garasto 2019-01-15 08:43:39 +01:00
parent 142e9958be
commit b3ccef91ed

View File

@ -63,8 +63,8 @@ export class Checkbox extends FormElement {
protected mdcFoundation!: CheckboxFoundation; protected mdcFoundation!: CheckboxFoundation;
renderStyle() { static get styles() {
return style; return [style];
} }
get ripple() { get ripple() {
@ -92,7 +92,6 @@ export class Checkbox extends FormElement {
render() { render() {
return html` return html`
${this.renderStyle()}
<div class="mdc-checkbox" @animationend="${this._animationEndHandler}" .ripple="${ripple()}"> <div class="mdc-checkbox" @animationend="${this._animationEndHandler}" .ripple="${ripple()}">
<input type="checkbox" <input type="checkbox"
class="mdc-checkbox__native-control" class="mdc-checkbox__native-control"