mirror of
https://github.com/material-components/material-web.git
synced 2024-10-27 14:07:17 +03:00
Use static styles on mwc-tab-indicator
This commit is contained in:
parent
25d0a42548
commit
05e8fcf4f9
@ -59,8 +59,8 @@ export class TabIndicator extends BaseElement {
|
||||
@property({type: Boolean})
|
||||
fade = false;
|
||||
|
||||
renderStyle() {
|
||||
return style;
|
||||
static get styles() {
|
||||
return [style];
|
||||
}
|
||||
|
||||
render() {
|
||||
@ -70,7 +70,6 @@ export class TabIndicator extends BaseElement {
|
||||
'mdc-tab-indicator__content--underline': !this.icon
|
||||
};
|
||||
return html`
|
||||
${this.renderStyle()}
|
||||
<span class="mdc-tab-indicator ${classMap({'mdc-tab-indicator--fade': this.fade})}">
|
||||
<span class="mdc-tab-indicator__content ${classMap(contentClasses)}">${this.icon}</span>
|
||||
</span>
|
||||
|
Loading…
Reference in New Issue
Block a user