Skip to content

Commit

Permalink
fix: (CXSPA-1057) - Cart summary heading order (#18439)
Browse files Browse the repository at this point in the history
Co-authored-by: Piotr Bartkowiak <[email protected]>
  • Loading branch information
Pio-Bar and Piotr Bartkowiak authored Mar 28, 2024
1 parent 323d557 commit ec853f4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { CartOutlets } from '@spartacus/cart/base/root';
import { I18nModule, UrlModule } from '@spartacus/core';
import { FeaturesConfigModule, I18nModule, UrlModule } from '@spartacus/core';
import {
AtMessageModule,
IconModule,
Expand All @@ -19,13 +19,13 @@ import {
PromotionsModule,
provideOutlet,
} from '@spartacus/storefront';
import { CartItemListRowComponent } from './cart-item-list-row/cart-item-list-row.component';
import { AddToCartModule } from '../add-to-cart/add-to-cart.module';
import { CartCouponModule } from '../cart-coupon/cart-coupon.module';
import { CartItemValidationWarningModule } from '../validation/cart-item-warning/cart-item-validation-warning.module';
import { CartItemListRowComponent } from './cart-item-list-row/cart-item-list-row.component';
import { CartItemListComponent } from './cart-item-list/cart-item-list.component';
import { CartItemComponent } from './cart-item/cart-item.component';
import { OrderSummaryComponent } from './order-summary/order-summary.component';
import { AddToCartModule } from '../add-to-cart/add-to-cart.module';

@NgModule({
imports: [
Expand All @@ -43,6 +43,7 @@ import { AddToCartModule } from '../add-to-cart/add-to-cart.module';
RouterModule,
UrlModule,
AddToCartModule,
FeaturesConfigModule,
],
providers: [
provideOutlet({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<div class="cx-summary-heading">
<!-- TODO: (CXSPA-5987) Remove feature flag next major -->
<h3 *cxFeature="'a11yCartSummaryHeadingOrder'" class="cx-summary-heading">
{{ 'orderCost.orderSummary' | cxTranslate }}
</h3>

<div *cxFeature="'!a11yCartSummaryHeadingOrder'" class="cx-summary-heading">
{{ 'orderCost.orderSummary' | cxTranslate }}
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

.cx-summary-heading {
text-transform: capitalize;
// TODO: (CXSPA-5987) Remove the following propery next major release
@include type('3');
font-weight: var(--cx-font-weight-semi);
border-bottom: 1px solid var(--cx-color-medium);
Expand Down
1 change: 1 addition & 0 deletions projects/storefrontapp/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ if (!environment.production) {
a11yOrganizationListHeadingOrder: true,
a11yReplenishmentOrderFieldset: true,
a11yListOversizedFocus: true,
a11yCartSummaryHeadingOrder: true,
},
}),
provideConfig(<StoreFinderConfig>{
Expand Down

0 comments on commit ec853f4

Please sign in to comment.