Skip to content

Commit e6638e7

Browse files
committed
feat(all): custom icons
1 parent fc078af commit e6638e7

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

core/src/components/action-sheet/action-sheet.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export class ActionSheet implements OverlayInterface {
242242
<button class={buttonClass(b)} onClick={() => this.buttonClick(b)}>
243243
<span class="action-sheet-button-inner">
244244
{b.icon
245-
? <ion-icon name={b.icon} class="action-sheet-icon" />
245+
? <ion-icon icon={b.icon} class="action-sheet-icon" />
246246
: null}
247247
{b.text}
248248
</span>
@@ -258,7 +258,7 @@ export class ActionSheet implements OverlayInterface {
258258
<span class="action-sheet-button-inner">
259259
{cancelButton.icon
260260
? <ion-icon
261-
name={cancelButton.icon}
261+
icon={cancelButton.icon}
262262
class="action-sheet-icon"
263263
/>
264264
: null}

core/src/components/back-button/back-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class BackButton {
8282
class={backButtonClasses}
8383
onClick={(ev) => this.onClick(ev)}>
8484
<span class="back-button-inner">
85-
{ backButtonIcon && <ion-icon name={backButtonIcon}/> }
85+
{ backButtonIcon && <ion-icon icon={backButtonIcon}/> }
8686
{ this.mode === 'ios' && backButtonText && <span class="button-text">{backButtonText}</span> }
8787
{ this.mode === 'md' && <ion-ripple-effect tapClick={true}/> }
8888
</span>

core/src/components/menu-button/menu-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class MenuButton {
3131
<ion-menu-toggle menu={this.menu} autoHide={this.autoHide}>
3232
<ion-button>
3333
<slot>
34-
<ion-icon slot="icon-only" name={menuIcon}/>
34+
<ion-icon icon={menuIcon} slot="icon-only" />
3535
</slot>
3636
</ion-button>
3737
</ion-menu-toggle>

core/src/components/refresher-content/refresher-content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class RefresherContent {
4343
<div class="refresher-pulling">
4444
{this.pullingIcon &&
4545
<div class="refresher-pulling-icon">
46-
<ion-icon name={this.pullingIcon}></ion-icon>
46+
<ion-icon icon={this.pullingIcon}></ion-icon>
4747
</div>
4848
}
4949
{this.pullingText &&

core/src/components/tab-button/tab-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class TabButton {
8585
class="tab-cover"
8686
onKeyUp={this.onKeyUp.bind(this)}
8787
onBlur={this.onBlur.bind(this)}>
88-
{ tab.icon && <ion-icon class="tab-button-icon" name={tab.icon}></ion-icon> }
88+
{ tab.icon && <ion-icon class="tab-button-icon" icon={tab.icon}></ion-icon> }
8989
{ tab.label && <span class="tab-button-text">{tab.label}</span> }
9090
{ tab.badge && <ion-badge class="tab-badge" color={tab.badgeColor}>{tab.badge}</ion-badge> }
9191
{ this.mode === 'md' && <ion-ripple-effect tapClick={true}/> }

0 commit comments

Comments
 (0)