mirror of
https://github.com/material-components/material-web.git
synced 2024-10-27 22:17:25 +03:00
Use static styles on mwc-checkbox
This commit is contained in:
parent
142e9958be
commit
b3ccef91ed
@ -63,8 +63,8 @@ export class Checkbox extends FormElement {
|
||||
|
||||
protected mdcFoundation!: CheckboxFoundation;
|
||||
|
||||
renderStyle() {
|
||||
return style;
|
||||
static get styles() {
|
||||
return [style];
|
||||
}
|
||||
|
||||
get ripple() {
|
||||
@ -92,7 +92,6 @@ export class Checkbox extends FormElement {
|
||||
|
||||
render() {
|
||||
return html`
|
||||
${this.renderStyle()}
|
||||
<div class="mdc-checkbox" @animationend="${this._animationEndHandler}" .ripple="${ripple()}">
|
||||
<input type="checkbox"
|
||||
class="mdc-checkbox__native-control"
|
||||
|
Loading…
Reference in New Issue
Block a user