-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: (CXSPA-8988) - Add missing labels for Combo boxes in Order Summary #19659
Changes from 2 commits
2952462
c83738a
e58d001
673660c
8c9ff02
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,11 +50,36 @@ | |
> | ||
<div class="cx-replenishment-form-data-container"> | ||
<div *ngIf="!isMonthly" class="cx-days"> | ||
<span class="form-data-label">{{ | ||
'checkoutScheduledReplenishment.every' | cxTranslate | ||
}}</span> | ||
<span | ||
class="form-data-label" | ||
*cxFeature="'!a11yScheduleReplenishment'" | ||
>{{ 'checkoutScheduledReplenishment.every' | cxTranslate }}</span | ||
> | ||
<label | ||
class="form-data-label" | ||
*cxFeature="'a11yScheduleReplenishment'" | ||
for="order-replenishment-period-type" | ||
>{{ 'checkoutScheduledReplenishment.every' | cxTranslate }}</label | ||
> | ||
<ng-container *ngIf="isWeekly; else isDaily"> | ||
<select | ||
*cxFeature="'!a11yScheduleReplenishment'" | ||
class="form-control" | ||
(change)="changeNumberOfWeeks($event.target.value)" | ||
> | ||
<option | ||
*ngFor="let nWeeks of numberOfWeeks" | ||
[value]="nWeeks" | ||
[selected]=" | ||
nWeeks === scheduleReplenishmentFormData.numberOfWeeks | ||
" | ||
> | ||
{{ nWeeks }} | ||
</option> | ||
</select> | ||
<select | ||
*cxFeature="'a11yScheduleReplenishment'" | ||
id="order-replenishment-period-type" | ||
class="form-control" | ||
(change)="changeNumberOfWeeks($event.target.value)" | ||
> | ||
|
@@ -71,6 +96,21 @@ | |
</ng-container> | ||
<ng-template #isDaily> | ||
<select | ||
*cxFeature="'!a11yScheduleReplenishment'" | ||
class="form-control" | ||
(change)="changeNumberOfDays($event.target.value)" | ||
> | ||
<option | ||
*ngFor="let nDays of numberOfDays" | ||
[value]="nDays" | ||
[selected]="nDays === scheduleReplenishmentFormData.numberOfDays" | ||
> | ||
{{ nDays }} | ||
</option> | ||
</select> | ||
<select | ||
*cxFeature="'a11yScheduleReplenishment'" | ||
id="order-replenishment-period-type" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can introduce There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've just updated it. |
||
class="form-control" | ||
(change)="changeNumberOfDays($event.target.value)" | ||
> | ||
|
@@ -85,10 +125,29 @@ | |
</ng-template> | ||
</div> | ||
<div class="cx-month"> | ||
<span *ngIf="isMonthly" class="form-data-label">{{ | ||
'checkoutScheduledReplenishment.every' | cxTranslate | ||
}}</span> | ||
<ng-container *cxFeature="'!a11yScheduleReplenishment'"> | ||
<span *ngIf="isMonthly" class="form-data-label">{{ | ||
'checkoutScheduledReplenishment.every' | cxTranslate | ||
}}</span> | ||
</ng-container> | ||
<ng-container *cxFeature="'a11yScheduleReplenishment'"> | ||
<label | ||
*ngIf="isMonthly" | ||
class="form-data-label" | ||
for="order-replenishment-recurrence-period" | ||
>{{ 'checkoutScheduledReplenishment.every' | cxTranslate }}</label | ||
> | ||
<label | ||
*ngIf="!isMonthly" | ||
class="form-data-label" | ||
for="order-replenishment-recurrence-period" | ||
>{{ | ||
'checkoutScheduledReplenishment.duration' | cxTranslate | ||
}}</label | ||
> | ||
</ng-container> | ||
<select | ||
id="order-replenishment-recurrence-period" | ||
class="form-control" | ||
(change)="changeRecurrencePeriodType($event.target.value)" | ||
> | ||
|
@@ -105,11 +164,36 @@ | |
</select> | ||
</div> | ||
<div *ngIf="isMonthly" class="cx-dayMonth"> | ||
<span class="form-data-label">{{ | ||
'checkoutScheduledReplenishment.dayOfMonth' | cxTranslate | ||
}}</span> | ||
<span | ||
class="form-data-label" | ||
*cxFeature="'!a11yScheduleReplenishment'" | ||
>{{ 'checkoutScheduledReplenishment.dayOfMonth' | cxTranslate }}</span | ||
> | ||
<label | ||
class="form-data-label" | ||
*cxFeature="'a11yScheduleReplenishment'" | ||
for="order-replenishment-day-of-month" | ||
>{{ | ||
'checkoutScheduledReplenishment.dayOfMonth' | cxTranslate | ||
}}</label | ||
> | ||
<div class="cx-day-of-month"> | ||
<select | ||
*cxFeature="'!a11yScheduleReplenishment'" | ||
class="form-control" | ||
(change)="changeDayOfTheMonth($event.target.value)" | ||
> | ||
<option | ||
*ngFor="let nDays of numberOfDays" | ||
[value]="nDays" | ||
[selected]="nDays === scheduleReplenishmentFormData.nthDayOfMonth" | ||
> | ||
{{ nDays }} | ||
</option> | ||
</select> | ||
<select | ||
*cxFeature="'a11yScheduleReplenishment'" | ||
id="order-replenishment-day-of-month" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can introduce There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've just updated it. |
||
class="form-control" | ||
(change)="changeDayOfTheMonth($event.target.value)" | ||
> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can introduce
id
attributes without a feature toggle because its not a breaking change.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just updated it.