color
This commit is contained in:
@@ -102,19 +102,19 @@
|
||||
}
|
||||
</div>
|
||||
|
||||
@if (availableColours().length || availableSizes().length || item()!.colour || item()!.size) {
|
||||
@if (availableColours().length || availableSizes().length || item()!.colour || (item()!.size && item()!.size!.toLowerCase() !== 'default')) {
|
||||
<div class="novo-variants">
|
||||
@if (availableColours().length) {
|
||||
<div class="variant-group">
|
||||
<span class="variant-label">{{ 'itemDetail.colour' | translate }}:</span>
|
||||
@for (c of availableColours(); track c) {
|
||||
<span class="variant-chip colour-chip" [class.active]="selectedColour() === c" (click)="selectColour(c)">{{ c }}</span>
|
||||
<span class="colour-swatch" [class.active]="selectedColour() === c" [style.background-color]="c" [title]="c" (click)="selectColour(c)"></span>
|
||||
}
|
||||
</div>
|
||||
} @else if (item()!.colour) {
|
||||
<div class="variant-group">
|
||||
<span class="variant-label">{{ 'itemDetail.colour' | translate }}:</span>
|
||||
<span class="variant-chip colour-chip active">{{ item()!.colour }}</span>
|
||||
<span class="colour-swatch active" [style.background-color]="item()!.colour" [title]="item()!.colour"></span>
|
||||
</div>
|
||||
}
|
||||
@if (availableSizes().length) {
|
||||
@@ -124,7 +124,7 @@
|
||||
<span class="variant-chip size-chip" [class.active]="selectedSize() === s" (click)="selectSize(s)">{{ s }}</span>
|
||||
}
|
||||
</div>
|
||||
} @else if (item()!.size) {
|
||||
} @else if (item()!.size && item()!.size!.toLowerCase() !== 'default') {
|
||||
<div class="variant-group">
|
||||
<span class="variant-label">{{ 'itemDetail.size' | translate }}:</span>
|
||||
<span class="variant-chip size-chip active">{{ item()!.size }}</span>
|
||||
@@ -381,19 +381,19 @@
|
||||
}
|
||||
</div>
|
||||
|
||||
@if (availableColours().length || availableSizes().length || item()!.colour || item()!.size) {
|
||||
@if (availableColours().length || availableSizes().length || item()!.colour || (item()!.size && item()!.size!.toLowerCase() !== 'default')) {
|
||||
<div class="dx-variants">
|
||||
@if (availableColours().length) {
|
||||
<div class="variant-group">
|
||||
<span class="variant-label">{{ 'itemDetail.colour' | translate }}:</span>
|
||||
@for (c of availableColours(); track c) {
|
||||
<span class="variant-chip colour-chip" [class.active]="selectedColour() === c" (click)="selectColour(c)">{{ c }}</span>
|
||||
<span class="colour-swatch" [class.active]="selectedColour() === c" [style.background-color]="c" [title]="c" (click)="selectColour(c)"></span>
|
||||
}
|
||||
</div>
|
||||
} @else if (item()!.colour) {
|
||||
<div class="variant-group">
|
||||
<span class="variant-label">{{ 'itemDetail.colour' | translate }}:</span>
|
||||
<span class="variant-chip colour-chip active">{{ item()!.colour }}</span>
|
||||
<span class="colour-swatch active" [style.background-color]="item()!.colour" [title]="item()!.colour"></span>
|
||||
</div>
|
||||
}
|
||||
@if (availableSizes().length) {
|
||||
@@ -403,7 +403,7 @@
|
||||
<span class="variant-chip size-chip" [class.active]="selectedSize() === s" (click)="selectSize(s)">{{ s }}</span>
|
||||
}
|
||||
</div>
|
||||
} @else if (item()!.size) {
|
||||
} @else if (item()!.size && item()!.size!.toLowerCase() !== 'default') {
|
||||
<div class="variant-group">
|
||||
<span class="variant-label">{{ 'itemDetail.size' | translate }}:</span>
|
||||
<span class="variant-chip size-chip active">{{ item()!.size }}</span>
|
||||
|
||||
Reference in New Issue
Block a user