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;
|
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user