Skip to content

Commit

Permalink
fix: migrate product switch to 0.12.0 styles (#3380)
Browse files Browse the repository at this point in the history
* fix: Migrate icons to product switch from styles 0.12.0

* update version

* update comments

* update package
  • Loading branch information
JKMarkowski committed Sep 25, 2020
1 parent dffa4ca commit 08e3ec5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
(click)="itemClick(product, $event)"
[draggable]="!product.disabledDragAndDrop && dragAndDropEnabled"
[stickInPlace]="product.stickToPosition">
<div class="fd-product-switch__icon" [ngClass]="product.icon ? 'sap-icon--' + product.icon : ''">
<img *ngIf="product.image" [src]="product.image"/>
</div>
<i role="presentation" class="fd-product-switch__icon" [ngClass]="product.icon ? 'sap-icon--' + product.icon : ''"></i>
<div class="fd-product-switch__text">
<div class="fd-product-switch__title">{{ product.title }}</div>
<div *ngIf="product.subtitle" class="fd-product-switch__subtitle">{{ product.subtitle }}</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ export interface ProductSwitchItem {
/** Subtitle of product */
subtitle?: string;

/** Url of product image */
/** @deprecated
* Use icon property instead
*/
image?: string;

/** Callback function that will be called on selecting this product from dropdown */
Expand Down

0 comments on commit 08e3ec5

Please sign in to comment.