File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 88
99
1010import '../../../focus/focus-ring' ;
11- import '../../../icon/icon' ;
1211
1312import { addHasRemoveClass , BaseElement } from '@material/mwc-base/base-element' ;
1413import { observer } from '@material/mwc-base/observer' ;
@@ -139,8 +138,7 @@ export class Tab extends BaseElement {
139138
140139 /** @soyTemplate */
141140 protected renderIcon ( icon : string ) : TemplateResult {
142- return html `< md-icon class ="md3-tab__icon "> < slot name ="icon "> ${
143- icon } </ slot > </ md-icon > `;
141+ return html `` ;
144142 }
145143
146144 /** @soyTemplate */
Original file line number Diff line number Diff line change 55 */
66
77import '../tab_indicator/tab-indicator' ;
8+ import '../../icon/icon' ;
89
910import { html , TemplateResult } from 'lit' ;
1011import { customElement } from 'lit/decorators' ;
@@ -38,4 +39,10 @@ export class MdPrimaryTab extends PrimaryTab {
3839 .icon ="${ indicatorIcon } "
3940 .fade ="${ isFadingIndicator } "> </ md-tab-indicator > ` ;
4041 }
42+
43+ /** @soyTemplate */
44+ protected override renderIcon ( icon : string ) : TemplateResult {
45+ return html `< md-icon class ="md3-tab__icon "> < slot name ="icon "> ${
46+ icon } </ slot > </ md-icon > `;
47+ }
4148}
Original file line number Diff line number Diff line change 55 */
66
77import '../tab_indicator/tab-indicator' ;
8+ import '../../icon/icon' ;
89
910import { html , TemplateResult } from 'lit' ;
1011import { customElement } from 'lit/decorators' ;
@@ -38,4 +39,10 @@ export class MdSecondaryTab extends SecondaryTab {
3839 .icon ="${ indicatorIcon } "
3940 .fade ="${ isFadingIndicator } "> </ md-tab-indicator > ` ;
4041 }
42+
43+ /** @soyTemplate */
44+ protected override renderIcon ( icon : string ) : TemplateResult {
45+ return html `< md-icon class ="md3-tab__icon "> < slot name ="icon "> ${
46+ icon } </ slot > </ md-icon > `;
47+ }
4148}
You can’t perform that action at this time.
0 commit comments